Is there a way to check if in BufferedReader object is something to read? Something like C++ cin.peek(). Thanks.
BufferedReader
cin.peek()
You could use a PushBackReader to read a character, and then "push it back". That way you know for sure that something was there, without affecting its overall state - a "peek".