CJCoding With Joseph

Count Vowels in a Sentence

Read one full line of text with sc.nextLine() and print how many vowels (a, e, i, o, u, either case) it contains. For example, if the input is Hello World, print:

Vowels: 3

Loop over each character with charAt(i), lowercase it, and count matches.

Expected Output:

Vowels: 3
Topics:
User Input
๐Ÿ“ฅ Auto-Input:
Hello World\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.