Repeaters in Java