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
5 Respostas
+ 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... 👍
+ 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)
+ 1
Thanks sarada ,it helped me 🙂
+ 1
Welcome🤗😊
0
Thanks sarada ,can you please explain the code line 11 ?