//necessary to hold the screen for input and viewing try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); System.out.println (" Type 'exit' to leave the program."); String line = in.readLine(); } // end of try catch(Exception e){} }//end catch