How to Count Vowels in Scala - Code Snippet

How to perform 'Count Vowels' in Scala.

example.scala
// Task: Count Vowels
// Language: Scala

def count_vowels() {
    // Implementation for Count Vowels
    val result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process Count Vowels
    println("Done");
}
AdSense Slot