Recently, when looking at the JDK source code, always see : This identifier:
public static void Testimportantkey () {
First: //first is a variable of its own definition
while (true) {
for (int i = 0; i < i++) {
System.out.println ("1111111");
if (i = = 2) {
Break first;
}
System.out.println ("2222222222");
}
}
}
Output Result:
1111111
2222222222
1111111
2222222222
1111111
Public Static void Testimportantkey () { while (true) {First : for ( int i = 0; I < 10; i++) { System.out.println ("1111111"); if (i = = 2) {break first ; } System.out.println ("2222222222"); }}}
Output Result:
1111111
2222222222
1111111
2222222222
1111111
1111111
2222222222
1111111
2222222222
1111111
1111111
2222222222
1111111
2222222222
1111111
.................
Keep circulating
So look : similar to goto. Since Java does not have a goto, it has :
Java: The use of