Showing posts with label code blocks. Show all posts
Showing posts with label code blocks. Show all posts

Tuesday, March 27, 2012

Code blocks: Curly braces

{...} encloses classes, methods and other blocks of Java code.

There is always one top set of curly braces that belong to the class declaration. Placing your cursor next to a semi-colon (in Eclipse) will cause the matching curly to be highlighted.



Example class showing curly braces used to create code blocks