package chap2_流程控制.struct;
/**
*使用增强for循环遍历数组
*/
public class Test06 {
public static void main(String[] args) {
int [] numbers = {10,20,30,40,50};
//for循环
for (int i = 0 ; i < 5;i++){
System.out.print(numbers[i]+" ");
}
System.out.println("\n==============");
//增强for循环
for (int x :numbers){
System.out.print(x+" ");
}
}
}