跳出双重for循环的案例__________跳出了,则不再执行标签ok下的for循环代码

 1         ok:
 2             for (int i = 0; i < 3; i++) {
 3                 for (int j = 0; j < 4; j++) {
 4                     System.out.print("*");
 5                 }
 6                 break ok;
 7             }
 8         System.out.println("---------------------OVER---------------");
 9         
10         suc:
11             while(true){
12                 System.out.println("*");
13                 break suc;
14             }
15         System.out.println("---------------------OVER---------------");
原文地址:https://www.cnblogs.com/1020182600HENG/p/6559632.html