package text;
public class asd {
public static void main(String args[]){
int array[][]={{2,3,4},{5,6,7}};
int a[][]=new int[3][2];
System.out.println(" :");
for(int i=0;i<array.length;i++){
for(int j=0;j<array[i].length;j++){
System.out.print(array[i][j]+" ");
}
System.out.println();
}
for(int i=0;i<array.length;i++){
for(int j=0;j<array[i].length;j++){
a[j][i]=array[i][j];
}
}
System.out.println(" :");
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
System.out.print(a[i][j]+" ");
}
System.out.println();
}
}
}
:
2 3 4
5 6 7
:
2 5
3 6
4 7