public class TurtleWithStaticMethod { public static void main(String[] args) { World earth = new World(500, 500); Turtle donatello = new Turtle(100, 200, earth); Turtle michelangelo = new Turtle(200, 400, earth); drawSquare(donatello); drawSquare(michelangelo); michelangelo.forward(makeRandomNum()); } // draws a square public static void drawSquare(Turtle anyTurtle) { anyTurtle.penDown(); anyTurtle.forward(); anyTurtle.turnRight(); anyTurtle.forward(); anyTurtle.turnRight(); anyTurtle.forward(); anyTurtle.turnRight(); anyTurtle.forward(); } // returns random integer between 1 and 100 public static int makeRandomNum() { int num = (int) (Math.random() * 100) + 1; return num; } }