Computer Applications

What is the application of hasNextBoolean( ) method?

Input in Java

17 Likes

Answer

Returns true if the next token in the Scanner's input can be interpreted as a boolean value, otherwise it returns false.

Answered By

11 Likes


Related Questions