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