for Statement
The for statement executes some initialization code, then
executes an Expression, a Statement, and some update code repeatedly
until the value of the Expression is flase.
for ( Init; Expression; Update )
Statement
The Init code is a list of statement expressions, the expressions are
evaluated in sequence from left to right. If in the Init code, there is
a local variable declaration then the scope of the local variable is in
the for block. If the value of the Expression is false the
first time it is evaluated, then the Statement is not executed.
Labeled Statements
Statements may have label prefixes.
Identifier : Statement
The Java programming language has no goto statement. The identifier
statement labels are used with break and continue
statements.
break
The break transfers control out of an enclosing statement.
break Identifier;
The Identifier is optional. If there is an Identifier, then break
attempts to transfer control to the statement having the same label as the
Identifier.
continue Statement
The continue statement may occur only in a while, do,
or for statement. The continue statement ends the current
iteration and begins a new one.