java 二维数组声明 int [][] a=int [2][2]; int [][] a=int [][]{{1,2},{3,4}}; int [][] a={{1,2},{3,4}};二维数组可以理解为行列。多维数组和二维数组类似。