Next: Lab Exercise 4: Tracing
Up: In the Laboratory: CyberPetApplet
Previous: Lab Exercise 2: Resizing
Make each of the following changes to CyberPetApplet.java, one
at a time, then recompile it and note the syntax
error that results. Copy the syntax error into your write-up for this
lab with a brief note of what caused the error.
- Comment out the first import statement in the program.
- Delete the semicolon after pet1.eat() in the actionPerformed()
method.
- Change the spelling TextField to Textfield in one of
the lines in init().
Ralph Morelli {Faculty}
12/22/1999