retry: for(int a=0;a<3;a++){ for (int i = 0; i <4 ; i++) { System.out.print(i+","); if (i==1){ continue retry; } } }
跳出当次循环到retry,下一次循环继续
retry: for(int a=0;a<3;a++){ for (int i = 0; i <4 ; i++) { System.out.print(i+","); if (i==1){ break retry; } } }
跳出循环到retry,结束循环