[Solved] How to print out a 2d array in a certain way? (Java) [closed]


You want to start with the last element in the last column, and go backwards by columns first. So all you need to do is change the direction and order of your loops:

for(int m=column - 1;m>=0;m--) {
    for(int i=row - 1;i>=0;i--) {
        System.out.print(charArray[i][m])
    }
    System.out.println();
}

solved How to print out a 2d array in a certain way? (Java) [closed]