next up previous
Next: Lab Exercise 2: Generating Up: In the Laboratory: Editing, Previous: Program Walkthrough: Method Definition

Lab Exercise 1: Editing, Compiling, and Running

Using whatever programming environment you have available in your computing lab, edit, compile, and run the FirstApplet program. However, don't just keyboard the whole program and then compile it. Instead, use the stepwise refinement approach as outlined here.

Hopefully, going through this exercise has illustrated some of the advantages of the stepwise refinement approach to writing Java code.


Programming Tip: Stepwise Refinement. Stepwise refinement is a coding and testing strategy that employs the divide-and-conquer principle. Keyboard and test small segments of the program in a step-by-step fashion. In addition to breaking up the task into more manageable subtasks, this approach helps to localize any problems that arise.


next up previous
Next: Lab Exercise 2: Generating Up: In the Laboratory: Editing, Previous: Program Walkthrough: Method Definition
Ralph Morelli {Faculty} 2002-03-02