Java

Java Program to Count the Frequency of Each Vowel in a Given String

Write a program to count the frequency of each vowel in a given string in Java. For example, Input “My name is John Smith” Output Number of ‘a’ = 1  Number of ‘e’ = 1   Number of ‘i’ = 2  Number of ‘o’ = 1  Number of ‘u’ = 0 Steps Let str be the input string. Initialize an integer array of size 5. Let the name of the array be cnt. Fill cnt with …

Java Program to Count the Frequency of Each Vowel in a Given String Read More »