public class Interview {
public static void main(String[] args) {
//使用带标签的break跳出多层嵌套循环
Boolean flag = true; int count = 0;
loop:while (flag){
for(int i=0;i<1000;i++){ for(int j =0;i<1000;j++){
count++;
if(count>10){
break loop;// continue loop;
}
System.out.println(count);
} }
}
System.out.println("test");
}
}