Java: Buffered Reader Input Guarding

Is there a method for monitoring input in Java utilizing BufferedReader, in a way like a Scanner utilizes hasNextInt()?

For instance, perusing in an int, and if a non-integer is entered, utilizing the control stream to stop the program advancing until an int is placed? I picture some time circle however uncertain of the conditional.

KM

1 Like