Listing 5. Source code for driver class named Prob01. |
---|
public class Prob01{ public static void main(String[] args){ World mars = new World(200,250); Turtle joe = new Turtle(mars); joe.forward(); Turtle bill = new Turtle(mars); bill.moveTo(50,125); Turtle sue = new Turtle(mars); sue.moveTo(150,125); Turtle tom = new Turtle(mars); tom.moveTo(100,225); }//end main method }//end class Prob01 |