数组声明首选方法 dataType[] arrayRefVar;
int[] arr=new int[10];
for-each循环
for(type element:array){
System.out.println(element);
}