You need to see what the read() method does, and work out why you get 51 when you expect 3. There are other methods in those classes, eg readLine() which are probably more suitable. There is no need to use two BufferedReaders in the same method to read from the same source. Make sure you use a finally block to close the Reader, otherwise you may end up with "resource leaks."
You may find it much easier if you use the Scanner class.
Joined: Oct 17, 2009
Joined: Oct 13, 2005
I presume you have got it worked out then . . . well done