KnowledgeBoat Logo
|

Computer Applications

What is the application of hasNextBoolean( ) method?

Input in Java

18 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

12 Likes


Related Questions