int[] arr2 = new int[row]; for (int i = 0; i < col; i++) { // 列数 for (int j = 0; j < row; j++) { arr2[j] = arr[j][i]; } }