Java Reference
In-Depth Information
In addition to the expression statements listed, several other kinds of
statements, such as
if
and
for
statements, affect flow of control through
the program. This chapter covers each type of statement in detail.
Curly braces,
{
and
}
, group zero or more statements into a
block.
A
block can be used where any single statement is allowed because a
block
is
a statement, albeit a compound one.