• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parsing inputs

 
Shamsudeen Akanbi
Ranch Hand
Posts: 85
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i'm trying to take an(int) input as part of my program. On the invocation of InputStreamReader wrapped around the BufferedReader class, I don't know why parseInt cannot convert the object. I guess i'm invoking the wrong method. BufferedReader br = new BufferedReader(new InputStreamReader(System.in));. What i need is a way of using the primitive int value of object inputed. Thanks in advance.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49472
64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
InputStreamReader wrapped around BufferedReader? Surely you mean it the other way round?
How are you reading, where are you reading from, what is the actual input? We need lots more details before we can help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic