Java identifiers in the loop jump

Test Package; 

public class ScannerDemo004 {
public static void main (String [] args) {
// jump from the loop identifier, the body will not enter the circulation, it will execute the statement after the loop
Outer:
// the System. out.println ( "111"); // between the identifier and the outer loop does not have any statement
for (int I = 0; I <. 5; I ++) {
for (int J = 0; J <. 5; J ++) {
IF (J == I) {
// after the interrupt routine will pop identifier outer: at
bREAK Outer;
}
System.out.println ( "1111" + I);

}
}
System.out.println ( "@@ @@@@@@@@@@@ ");
}
}

Guess you like

Origin www.cnblogs.com/kukai/p/11030991.html