Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public class Setup
  2. {
  3. static final int row = 9;
  4. static final int column = 9;
  5.  
  6.  
  7. public void load() throws IOException
  8. {
  9. char [][] grid = new char [row][column];
  10. /*int [][] square = new int [3][3];*/
  11. int x=0;
  12. int y=0;
  13. int NewNumber;
  14. FileReader input = new FileReader( "book55.sud" );
  15. BufferedReader br = new BufferedReader(input);
  16.  
  17. for(y=0; y<column; y++)
  18. {
  19. for(x=0; x<row; x++)
  20. {
  21. NewNumber = br.read();
  22. System.out.print((char)NewNumber);
  23. // put the data into the array
  24. grid[x][y] = (char)NewNumber;
  25. }
  26. }
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement