public static void main( String[] args ){ if( args.length == 1 ){ try{ Scanner input = new Scanner( new File( args[0] )); while( input.hasNext()){ String text = input.next(); Puzzle thePuzzle = new Puzzle( text ); thePuzzle.print(); } } catch(PuzzleFileFormatException e ){} catch(IOException e ){} } }