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, תוך התעלמות מהבדל בין אותיות גדולות לקטנות. המר את האותיות לאותיות קטנות תחילה באמצעות s.toLowerCase(), ולאחר מכן סרקו בעזרת s.charAt(i) והשוו כל אות לתנועה.

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP