Copyright © 1995-1999, Sun Microsystems, Inc. All Rights Reserved. Used by permission.
Revised April 20, 1999. Format and navigation by Martin Rinehart, www.MartinRinehart.com, May 31, 2005.
Two blank lines should always be used in the following circumstances:
8.1 Blank Lines
Blank lines improve readability by setting off sections of code that are logically related.
One blank line should always be used in the following circumstances:
8.2 Blank Spaces
Blank spaces should be used in the following circumstances:
Note that a blank space should not be used between a method name and its opening parenthesis. This helps to distinguish keywords from method calls.
while (true) {
...
}
a += c + d;
a = (a + b) / (c * d);
while (d++ = s++) {
n++;
}
printSize("size is " + foo + "\n");
for (expr1; expr2; expr3)
myMethod((byte) aNum, (Object) x);
myMethod((int) (cp + 5), ((int) (i + 3))
+ 1);
[Contents] [Prev] [Next]