Java Reference
In-Depth Information
When used inside a set of nested loops, the
break
statement will break out of only the
innermost loop. For example:
This program generates the following output: