SudokuMain - Scanner infile = new Scanner(new...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.Scanner; import*; public class SudokuMain { public static void main(String[] args) throws IOException { String filename; Scanner kb = new Scanner(; System.out.print("filename: "); filename =;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Scanner infile = new Scanner(new FileReader(filename)); Sudoku puzzle = new Sudoku(infile); puzzle.display(System.out); puzzle.checkValid(System.out); // display valid or not } }...
View Full Document

This note was uploaded on 04/03/2010 for the course COMPSCI 600.107 taught by Professor Houlahan during the Spring '08 term at Johns Hopkins.

Ask a homework question - tutors are online