class SudokuMatrix { private int[][] matrix = new int[][] { {0, 5, 0, 6, 0, 1, 0, 0, 0}, {0, 0, 7, 0, 9, 0, 0, 2, 0}, {3, 0, 0, 0, 0, 4, 0, 0, 1}, {9, 0, 0, 0, 0, 0, 1, 3, 0}, {0, 0, 8, 0, 5, 0, 7, 0, 0}, {0, 2, 6, 0, 0, 0, 0, 0, 8}, {7, 0, 0, 9, 0,…