A:for(int i=0;i<10;i++){
for(int n=0;n<10;n++){
if (n==5) {
break A;
}
System.out.println("内循环"+n);
}
System.out.println("外循环"+i);
}
Add a mark to the outermost, such as A, and then break A;
}
Add a mark to the outermost, such as A, and then break A;