Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

Count the vowels · ⁨นับสระ⁩

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.

ไทย

นับสระ

นับสระ (a e i o u) ใน String, treating upper- และ lower-case เหมือนกัน Lower-case ก่อนด้วย s.toLowerCase(), จากนั้น loop ด้วย s.charAt(i) และเปรียบเทียบกับสระแต่ละตัว

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP