Red de conocimiento informático - Aprendizaje de código fuente - Interesante programación java

Interesante programación java

Clase pública T {

Public static void main(String[] args) {

int i, j;

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

int[][]b = nuevo int[3][3];

System.out.print("Matriz inicial:\ n ");

for(I = 0;i<3;i++) {

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

sistema . imprimir(a[I][j]+" ");

}

sistema imprimir. (" \ n ");

}

System.out.print("Matriz transpuesta:\ n "); i<3;i++) {

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

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

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

}

sistema print(" \ n ");

}

}

}