Write a program that will manipulate a two-dimensional array. Do the following:
  1. Create an array 10 x 10.
  2. Fill the array with integers 0 to 99.
  3. Print the array in a nice format.
  4. Prompt the user for two columns numbers. (Please check whether they are between 0 and 9, inclusive, otherwise your program may throw an out-of-bounds exception.)
  5. Interchange the columns with the given numbers in the array.
  6. Print the transformed array in a nice format.

Steps 3 and 6 are calls to a function/ method that prints the array (it takes the name of the array as argument).

Step 5 is a call to a function/ method that swaps two columns (it takes the name of the array and the numbers of the two columns as arguments).

Example (here with an array of size 5 x 5)

 0  1  2  3  4  
 5  6  7  8  9 
10 11 12 13 14 
15 16 17 18 19
20 21 22 23 24

Enter two colum numbers: 0 3

 3  1  2  0  4  
 8  6  7  5  9 
13 11 12 10 14 
18 16 17 15 19
23 21 22 20 24