package Lect27Arrays2D; public class TwoDimArrayEx3 { public int[][] reverse(int[][] theArray) { int[][] result; // Create new array with same dimensions as parameter result = new int[theArray.length][]; for (int row=0; row=0; row--,resRow++) { resCol = 0; for (int col=theArray[row].length - 1; col>=0; col--) { result[resRow][resCol++] = theArray[row][col]; } } return result; } public void printArray(int[][] array) { for (int row=0; row