package study1;
public class exercise {
public static void main(String[] args) {
int i,j;
Label1:
for(j=1;j<3;j++) {
Label2:
for(i=1;i<3;i++) {
if(i%2==0) {
System.out.println("label1标签的语句块已经执行");
System.out.println("i="+i+",j="+j);
System.out.println("**************");
continue Label1;
}
if(j%2==0) {
System.out.println("label2标签的语句块已经执行");
System.out.println("i="+i+",j="+j);
System.out.println("**************");
continue Label2;
}
}
}
}
}
15.2标签
最新推荐文章于 2024-03-12 10:16:40 发布