if语句里面continue和break的区别
break:结束整个循环体continue:结束本次循环public static void main(String[] args) { int x=0; while(x++ < 10) { if(x == 3) { break; } System.out.println("x="+x);