// steve eilertsen // Only one thread. Therefore each Gogga must run // one after the other (not at the same time) import java.awt.Color; public class MakeSquare { public static void main(String[]args) { SquareGogga bug = new SquareGogga(); bug.makeSquare(); SquareGogga beetle = new SquareGogga(); beetle.setPosition(5,6); beetle.setColor(Color.blue); beetle.makeSquare(); SquareGogga lice = new SquareGogga(Color.green); lice.setPosition(4,7); lice.makeSquare(); } } =============================================================== // steve eilertsen // Only one thread. Therefore each Gogga must run // one after the other (not at the same time) import it.*; import java.awt.Color; public class SquareGogga extends Gogga { public SquareGogga() { super(); } public SquareGogga(Color green) { super(green); } public void makeSquare() { for(int loop = 1; loop <=4; loop++) { this.move(); this.move(); this.move(); this.turnLeft(); } } } =============================================================