Skip to content · ⁨Lompat ke konten⁩

Count the vowels · ⁨Hitung huruf vokal⁩

English

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.

Bahasa Indonesia

Hitung vokal

Hitung huruf vokal (a e i o u) dalam sebuah String, dengan menganggap huruf kapital dan kecil sebagai sama. Ubah ke huruf kecil terlebih dahulu dengan s.toLowerCase(), lalu lakukan perulangan dengan s.charAt(i) dan bandingkan terhadap setiap huruf vokal.

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP