public static class RowColumnObject {
int row;
int col;
RowColumnObject(int row, int column) {
this.row = row;
this.col = column;
}
}
public static class IsRowValid extends RowColumnObject implements Runnable {
IsRowValid(int row, int column) {
super(row, column);
}
@Override
public void run() {
int i;
int[] hash = new int[9];
for (i = 0; i < 9; i++) {
hash[i] = 0;
}
for (i = 0; i < 9; i++) {
int num = sudoku[row][i];
if (hash[num-1] == 1 || num < 1 || num > 9) {
return;
} else if (hash[num