Design Recipes and Syntax Rules

Note: These design recipes were originally written for my CSC 171/172 class in 1998-1999; some details (e.g. references to CodeWarrior) may be out of date, but I'm trying to fix them.

Design Recipe for Object-Oriented Programs
A good place to start if you have an assignment and no existing code to start with.
Design Recipe for Java Classes
How to design and write an individual class (part of the above recipe).
Design Recipe for Java Methods
How to design and write a single method in a single class.
Designing and Testing
Another way of thinking about the task of designing, coding, and testing an entire program.

Other reference material

The Structure of Java Programs
Where classes, variable declarations, method headers and bodies belong in a Java source file. (Note: this is "Swedish" knowledge, as opposed to the more fundamental principles in the design recipes above, but you still need it in order to write Java programs.)
How do I declare a variable?
Discusses the differences among local, instance, and parameter variables, and how to declare each one.

Last modified:
Stephen Bloch /