Question: Debug this code 8 9 3 4 public class TurtleConstructor Debug 5 { 6 public static void main(String[] args) 7 { World w = new
8 9 3 4 public class TurtleConstructor Debug 5 { 6 public static void main(String[] args) 7 { World w = new World ( 300,0); I 9 Turtle to; 10 Turtle t1 = new Turtle(); 11 Turtle t2 = new Turtle (World, 100,50); 12 to.forward(); 13 ti.turnRight(); 14 t2.turnLeft(); 15 world.show(true); 16 } 1 There were errors compiling your code. See below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
