Skip to content · ⁨본문 바로가기⁩

Count the vowels · ⁨모음 문자 세기⁩

Count the vowels

Count the vowels (a e i o u) in a String, treating upper- and lower-case the same. Lower-case it first with s.toLowerCase(), then loop with s.charAt(i) and compare against each vowel.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP