杂项
增强for循环
for(声明语句 : 表达式){
//代码
}
比如:
int[] numbers = {10,20,30};
for(int x : numbers){
System.out.println(x);
}
continue标签
不建议使用: 标签 = 标识符 + :
label:for(int i = 1; i < 10; i++){
if(i = 5) {
continue label;
}
}
标签:10,int,label,continue,numbers,杂项 From: https://www.cnblogs.com/geeklee/p/17176970.html