public class LargestChessboard { static void findLargest (int[][] A) { int topLeftRow=-1, topLeftCol=-1; int bottomRightRow=-1, bottomRightCol=-1; // INSERT YOUR CODE HERE. printResult (" >> Your result: ", topLeftRow, topLeftCol, bottomRightRow, bottomRightCol); } //------------------------------------------------------------------- // Test code ... static void printResult (String msg, int topLeftRow, int topLeftCol, int bottomRightRow, int bottomRightCol) { System.out.println (msg + " (" + topLeftRow + "," + topLeftCol + " ) (" + bottomRightRow + "," + bottomRightCol + ")"); } public static void main (String[] argv) { // Test 1. int[][] A1 = { {0,1}, {1,0} }; printResult ("Test 1: Largest at ", 0, 0, 1, 1); findLargest (A1); // Test 2. int[][] A2 = { {1, 1, 1}, {1, 1, 0}, {1, 0, 1} }; printResult ("Test 2: Largest at ", 1, 1, 2, 2); findLargest (A2); // Test 3. int[][] A3 = { {1, 0, 1, 1}, {1, 0, 1, 0}, {0, 1, 0, 1}, {1, 0, 1, 1} }; printResult ("Test 3: Largest at ", 1, 0, 3, 2); findLargest (A3); } }