标签:int family 循环 mil ati microsoft out void for
/*break 打断循环
continue跳出某次循环
*/
public class break1continue {
public static void main(String[] args) {
for (int i = 1; i < 10; i++) {
System.out.println("我" + i);
if (i == 5) {
break;
}
}
//continue
for (int i = 1; i < 10; i++) {
if (i==6){
continue;
}
System.out.println("我" + i);
}
}
}
标签:int family 循环 mil ati microsoft out void for
原文地址:https://www.cnblogs.com/xzwx668/p/11974070.html