叶波动画

公共类T {

公共静态void main(String[] args) {

int i,j;

int[][] a = {{1,1,1},{2,2,2},{3,3 } };

int[][]b = new int[3][3];

System.out.print("初始矩阵:\ n ");

for(I = 0;我& lt3;i++) {

for(j = 0;j & lt3;j++) {

system . out . print(a[I][j]+" ");

}

system . out . print(" \ n ");

}

System.out.print("转置矩阵:\ n ");

for(I = 0;我& lt3;i++) {

for(j = 0;j & lt3;j++) {

b[I][j]= a[j][I];

system . out . print(b[I][j]+" ");

}

system . out . print(" \ n ");

}

}

}