方法的参数是二维数组
public class ArrayTest {
public static void main(String[] args) {
//二维数组
int [] [] a ={{65,76,2,12},{23,45,5},{12,23,4}};
Array(a);
}
public static void Array(int[][] a){
for (int i = 0; i <a.length ; i++) {//负责纵向3层
for (int j = 0; j <a[i].length ; j++) {//负责横向
System.out.print(a[i][j]+" ");
}
System.out.println();
}
}
}