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
Mention the syntax to use '?' as a token delimiter.
Write down the use of nextInt() method.
Name the package which can be imported to allow the use of scanner class.
In what way can the following data be read from the scanner object?
(a) Integer type
(b) Float type
(c) Double type
(d) String type
(e) Boolean type