You can try like this
Buffered reader tast=new BufferedReader( new InputStreamreader(System.in));
String age="";
age=tast.readLine();
intage=Integer.parseInt(age);
They already have that. If you actually read the thread they were having trouble with an exception.
Reputation Points: 533
Solved Threads: 53
Senior Poster
Offline 3,593 posts
since Aug 2007