Question 1 of 5
A signal mast stores integers in a rectangular grid. Write a method that reverses one entire column in place.
public static void reverseColumn(int[][] grid, int col)
{
/* complete the method */
}
(a) State the first pair of rows that should swap when the grid has 4 rows. (b) Write a loop that swaps from the top and bottom toward the middle. (c) Give column 0 after reversing {8, 3, 5, 1} from top to bottom.