aspose file tools*
The moose likes I/O and Streams and the fly likes Converting user input Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Converting user input" Watch "Converting user input" New topic
Author

Converting user input

Amy Rangel
Greenhorn

Joined: Aug 27, 2004
Posts: 1
How do I convert user input into an int by wrapping system.in in an InputStreamReader and wrapping that in a BufferedReader to convert the string into an int?
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
You seem to be most of the way there...

This code has no warranty, by the way.

Jules
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting user input
 
Similar Threads
string to object
Help with int Conversion to String
Convert English word to arabic
System.in.read()
to find the datatype of given string in runtime