Prerequisites to the second lecture is reading the chapters 1 to 3 of “Karel the Robot learns Java”.
Karel knows four basic commands (or methods):
move() turnLeft() pickBeeper() putBeeper()
To run feed Karel commands, first import Karels basic commands, create a class derived from Karel and put the commands into a run() method:
Continue reading “cs106a – Lecture #2: Programming & Control Structures”