View Single Post
  #2 (permalink)  
Old 08-07-2007, 09:16 AM
zoe zoe is offline
Member
 
Join Date: Jul 2007
Posts: 40
zoe is on a distinguished road
Please check this:
Code:
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String pct = null; try{ pct = br.readLine(); } catch(IOException e){ System.out.println("IO error has occurred"); System.exit(1); } System.out.println("You entered, " + pct);
Reply With Quote