If you have a two-dimensional array, and you want to swap the array rows and columns elements in both clockwise and anti-clockwise directions. This example will tell you how to implement it in java.
This example will get an array of integer numbers from the command line console which the user inputs, then it will calculate the minimum number in the integer array and print the value out in the console.