Next: Blank spaces
Up: White Space Usage
Previous: White Space Usage
Blank lines can improve readability by grouping sections of the code that are logically related.
A blank line should also be used in the following places:
- After the copyright block comment, package declaration, and import section.
- Between class declarations.
- Between method declarations.
- Between the last field declaration and the first method declaration in a class
- Before a block or single-line comment, unless it is the first line in a block.
Don't use more than one single blank line to separate grouped sections.
Dennis Seah
Mon Jul 17 11:43:42 2006