2
public void solveSudoku(char[][] board) {6
boolean solve(char board[][]) {7
for (int i = 0; i < board.length; i++) {8
for (int j = 0; j < board[0].length; j++) {9
if (board[i][j] == '.') {10
for (char c = '1'; c <= '9'; c++) {11
if (isValid(board, c, i, j) == true) {14
if (solve(board) == true) return true;15
else board[i][j] = '.';25
boolean isValid(char board[][], char c, int row, int col) {26
for (int i = 0; i < 9; i++) {27
if (board[row][i] == c) return false;28
if (board[i][col] == c) return false;29
if (board[3 * (row / 3) + (i / 3)][3 * (col / 3) + (i % 3)] == c) return false;