labeled-statements

Please explain the usage of Labeled Statements.

Is breaking and continuing the only uses of labeled statements in Java? When have you used Labeled Statements in your programs? Sorry the code snippet has been deleted. I am splitting the question ...

"loop:" in Java code. What is this, why does it compile, and generally WTF?

This code just made me stare at my screen for a few minutes: loop: for (;;) { // ... } (line 137 here) I have never seen this before, and I had no idea Java has a "loop" keyword (Netbeans doesn't even color it like a keyword), and it does compile fine with JDK 6. Can someone explain this to me? ...