Specifications

Sun Services
Java™ Programming Language
Module 3, slide 37 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Java Programming Language Coding
Conventions
Control structures:
if (
condition
) {
statement1
;
} else {
statement2
;
}
Spacing:
Use one statement per line.
Use two or four spaces for indentation.
Comments:
Use // to comment inline code.
Use /** documentation */ for class members.