Use space (NOT tabs) for indenting (portability law)
No line longer than 80 or 100 (choose one) characters (Geoff's law)
Continuations against the left margin (Geoff's suggestion)
Use a consistent style.
Comments
Code must be documented using comments.
On a single line starting with //, e.g.,
//----The SNAFU algorithm is used here
In /* */ pairs, e.g.,
/*
Program DisplayMessage
The program displays the text "I Love Java". The program uses a
MessageBox object from the javabook package to display the text.
*/