跪求各位大神,二维数组的转置,即m行n列转换成n行m列的Java程序
int[][] arrayOne = new int[m][n];
int[][] arrayTwo = new int[n][m];
for(int index = 0; index < arrayOne.length; index ++){
for(int indexInner = 0; indexInner < arrayOne[index].length; indexInner++){
arrayTwo[indexInner][index] = arrayOne[index][indexInner];
}
}