package com.liu.struct;

public class ForDemo4 {
public static void main(String[] args) {
int[] numbers ={10,20,30,40,50};
for (int i = 0; i < 5; i++) {
System.out.println(numbers[i]);
}
System.out.println("====================");

for(int x :numbers){ //将numbers的每个值赋给x。
System.out.println(x);
}


}
}