Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.io.*;
- public class solve {
- /**
- * @param args
- */
- public static void main(String[] args) throws IOException {
- BufferedReader in = new BufferedReader(new FileReader("C:/Users/Eddie/workspace/sudoku/sudoku.txt.txt"));
- int x = 0;
- int y = 0;
- int i;
- int [][] temp = new int [9][9];
- while (x < 9) {
- while (y < 9) {
- i = in.read() - 48;
- temp[x][y] = i;
- y++;
- }
- //i = in.read();
- x++;
- }
- sudoku s1 = new sudoku(temp);
- s1.solve();
- System.out.println(s1.toStringPrint());
- }
- }
Add Comment
Please, Sign In to add comment