Java has a facility to give labels to a block of statements.
The general form is
label : Looping statement |
Where,
label - valid java variable name
looping statement – for,do,while
label : Looping statement |
continue; |
break; |