next up previous
Next: Lab Exercise 3: Generating Up: In the Laboratory: Editing, Previous: Lab Exercise 1: Editing,

Lab Exercise 2: Generating Syntax Errors

In this exercise you will make modifications to FirstApplet which will introduce syntax errors into your program. The main purpose here is to give you a first look at how your programming environment reports error messages. You'll also learn some of the most fundamental rules of Java syntax.

For each of the items below, make the editing change and then recompile the program. Make note of any error messages that are generated by the compiler. Try to understand what the message is telling you, and try to learn from the error, so it will be less likely to occur next time. After you have finished with that error, restore the code to its original form and move on to the next item.


next up previous
Next: Lab Exercise 3: Generating Up: In the Laboratory: Editing, Previous: Lab Exercise 1: Editing,
Ralph Morelli {Faculty} 2002-03-02