Created
September 17, 2018 14:16
-
-
Save ShellBin/2b566a1ebfa591a48cff7d7b09d8d85d to your computer and use it in GitHub Desktop.
reverseCol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void reverseCol(int value [][]) { | |
for (int i = 0; i < value.length; i++) { | |
for (int j = i; j < value[i].length; j++) { | |
int k = value[i][j] ; | |
value[i][j] = value[j][i] ; | |
value[j][i] = k ; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment