package com.cheng.struct;
?
public class IfDemo01 {
public static void main(String[] args) {
//强化for循环
int[] numbers = {10,20,30,40,50};
for(int x:numbers){ //必须是int x 即新的声明 不能提前声明然后在此处用
System.out.print(x+"\t");
}
}
}
原文:https://www.cnblogs.com/Alirious/p/14810324.html