• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting user input

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic