/**
* 增强for循环
* @author Administrator
*
*/
public class Test03 {
public static void main(String[] args) {
int[] a = {1,2,567,89,26,30};
//两个for循环是等效的
for(int i=0;i<a.length;i++) {
System.out.print(a[i]+" ");
}
System.out.println();
for(int i : a) {
System.out.print(i+" ");
}
}
}