二维数组定义:int array[][] = new int[2][2]; 获取行数: int rowLength = array.length; 获取列数: int colLength = array[0].length;