Java Reference
In-Depth Information
10.6. Labels
You can label statements to give them a name by which they can be re-
ferred. A label precedes the statement it names; only one label is allowed
per statement:
label: statement
Labels can be referred to only by the
break
and
continue
statements (dis-
cussed next).