if () { ... }not like this:
if () { ... }or like this:
if () { ... }
import
-statements.
Instead, always use fully qualified names.
For example, say
java.util.Properties p = new java.util.Properties();instead of
import java.util.*; ... Properties p = new Properties();In a large system like SandMark it is difficult to read the code when you don't know where the a particular name is declared. In SandMark we use deep package hierarchies to organize the code and always refer to every object using its fully qualified name. This also prevents name clashes.
String
rather than java.lang.String
!