public static void main(String[] args) {
int [] arrays= {1,2,3,4,5};
printArrary(arrays);
}
//打印数组元素
public static void printArrary(int[] arrays){
for (int i=0;i< arrays.length;i++){
System.out.print(arrays[i]+" ");
}

}