设置标记的方法:
public class tail{
public static void main(String args[]){
int n=0;
again:
while(true){
n+=7;
while(true){
if(n%2==1&&n%3==2&&n%5==4&&n%7==0)
break again;//跳出again;直接执行System.out.println("ssssssss"+n);
continue again;
}
}
System.out.println("ssssssss"+n);
}
}
阅读(631) | 评论(0) | 转发(0) |