定义二位数组: int[][] arr1 = new int[][]{{1,2}, {2, 3}, {4, 5}}; //或者 int[][] arr1 = {{1,2}, {2, 3}, {4, 5}};