0

How does Boolean function works?

I used that Boolean in code, actually tried from a website,but I didn't understand how it worked, can anyone please explain? And also I didn't understand code in line 11. https://code.sololearn.com/cx03Cas45YHB/?ref=app

23rd Apr 2020, 10:15 AM
šŸŒ AnkuršŸŒ 
šŸŒ AnkuršŸŒ  - avatar
5 Answers
+ 2
Look, boolean datatype can take the values true or false... U initialized the boolean variable, "isVowel" with false... It means isVowel=0 initially... When it entered to switch... If any of the case becomes true it is assigned with true ie., 1.... Hope you got the point... šŸ‘
23rd Apr 2020, 11:04 AM
sarada lakshmi
sarada lakshmi - avatar
+ 1
Yeah!! Surely, TheĀ java.util.Scanner.next()Ā method finds and returns the next complete token from this scanner. A complete token is preceded and followed by input that matches the delimiter pattern. This method may block while waiting for input to scan, even if a previous invocation of hasNext() returned true. It takes a single character which is at 0th index..ie.,charAt(0)
23rd Apr 2020, 11:10 AM
sarada lakshmi
sarada lakshmi - avatar
+ 1
Thanks sarada ,it helped me šŸ™‚
23rd Apr 2020, 11:43 AM
šŸŒ AnkuršŸŒ 
šŸŒ AnkuršŸŒ  - avatar
+ 1
WelcomešŸ¤—šŸ˜Š
23rd Apr 2020, 11:44 AM
sarada lakshmi
sarada lakshmi - avatar
0
Thanks sarada ,can you please explain the code line 11 ?
23rd Apr 2020, 11:07 AM
šŸŒ AnkuršŸŒ 
šŸŒ AnkuršŸŒ  - avatar