Assignment for Thu 10/15: ------------------------ (1) Do exercises 4.5 and 4.6 from the Java packet. (2) Read Chapters 3-5 from _I, Robot_. ------------------------ -We talked about encapsulation and writing our own methods -We introduced these ideas using Robozzle: http://www.robozzle.com/ -We went over the tutorials in class (we saw one reason why recursion is useful) -We broke up into groups to do "The Windmill" -We talked a little about "Binary" (hard) -We then wrote a Java program to emulate the Robozzle language -The ultimate goal is to get an NXT to follow the commands, but our initial program simply printed the commands followed instead -We saw how we could create our own methods in Java -We saw how to call various methods (of a single object) from within one another -We saw how we could recursively call a method: e.g. public void F1 () { right(); // call the right method on this object left(); // call the left method on this object F1(); // call F1 from within F1, to effectively repeat the above infinitely } We notice that when calling a method of the same class, we do not need the "." notation to specify the object/class. File: Robozzle.java