//跳出多重循环
label:
for (int i = 0; i < 100; i++) {
System.out.println("i:" + i);
for (int j = 0; j < 100; j++) {
System.out.println("j:" + j);
break label;
}
}
System.out.println("label:break");
跳出多重循环
最新推荐文章于 2024-03-21 17:37:25 发布