This shell program imports code from two libraries:
import edu.pace.World; import edu.pace.Robot;Note that each import line ends with a semicolon (a Java convention)
public class LabShell { all your code goes here, in between the two curly brackets }You, the programmer, supply the name of the class, in this case the class name is LabShell.
Very Important: You must save your program with the name you are using for the class with a .java added - LabShell.java
public static void main(String[] args) { Your code goes here in between the curly brackets }
It's a Java convention to use the same wording all the time for this function main.
Always use: public static void main(String[] args) - memorize it.
Robot karel = new Robot();