Example 1:

The JRoboTest  program creates an instance of the basic JRobo class called aRobo and then gets it to exercises some of its methods. Note how any number of identical but independent instances can be created from the JRobo class (uncomment code at end of example.)