Use of brackets: to group statements together so the compiler knows where a procedure ends.
1) a method or constructor (the code for these should be within a set of brackets)
2) an if or else (the code that should be executed when if statement is true should be bracketed;
the code that should be executed when if statement is false (for else part) should be bracketed).
3) a switch (the code within a switch statement should be bracketed).
4) a for loop (the code that should be looped through should be bracketed).
Those listed above are the main ones. Also everything within the class (after the class indentifier) should be.