Java syntax: Difference between revisions

Content deleted Content added
m Literals: comma
Line 190:
===Code blocks===
 
The separators <tt>{</tt> and <tt>}</tt> are used to signify a code block and a new scope. Class members and the body of a method are examples of what can live inside these braces in various contexts.
 
Inside of method bodies, you can use the braces to create new scopes, likeas sofollows:
 
<syntaxhighlight lang=Java5>