Is there a way to check if in BufferedReader object is something to read? Something like C++ cin.peek(). Thanks.
BufferedReader
cin.peek()
BufferedReader br = new BufferedReader(reader); br.mark(1); int firstByte = br.read(); br.reset();