// box loop with for import it.*; import java.awt.*; public class BoxLoop1D { public static void main (String[]args) { Gogga.setGridSize(20,20); Gogga widget = new Gogga(8,8,1,Color.green); int counter = 0; while (counter < 4) { widget.move(); widget.move(); widget.move(); widget.move(); widget.turnRight(); counter = counter + 1; } // end for } // end main } // end class