• Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting user input  RSS feed

 
Amy Rangel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You seem to be most of the way there...

This code has no warranty, by the way.

Jules
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!