Variable Declarations
suggest change- One variable per declaration (and at most one declaration per line)
- Square brackets of arrays should be at the type (
String[] args
) and not on the variable (String args[]
). - Declare a local variable right before it is first used, and initialize it as close to the declaration as possible.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents