This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Parsing inputs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Parsing inputs" Watch "Parsing inputs" New topic

Parsing inputs

Shamsudeen Akanbi
Ranch Hand

Joined: Dec 24, 2010
Posts: 71
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(;. What i need is a way of using the primitive int value of object inputed. Thanks in advance.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38025
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Parsing inputs
Similar Threads
String Tokenizer
I tried to send an xml to an url its ,
How a character save in 2 bytes in Java?
how to read integers from keyboard?
String Revers