Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Setup
- {
- static final int row = 9;
- static final int column = 9;
- public void load() throws IOException
- {
- char [][] grid = new char [row][column];
- /*int [][] square = new int [3][3];*/
- int x=0;
- int y=0;
- int NewNumber;
- FileReader input = new FileReader( "book55.sud" );
- BufferedReader br = new BufferedReader(input);
- for(y=0; y<column; y++)
- {
- for(x=0; x<row; x++)
- {
- NewNumber = br.read();
- System.out.print((char)NewNumber);
- // put the data into the array
- grid[x][y] = (char)NewNumber;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement