Question: (Intro to Java help?) Write a static method named vowelCount that accepts a String as a parameter and produces and returns an array of integers
(Intro to Java help?)
Write a static method named vowelCount that accepts a String as a parameter and produces and returns an array of integers representing the counts of each vowel in the String. The array returned by your method should hold 5 elements: the first is the count of As, the second is the count of Es, the third is the count of Is, the fourth is the count of Os, and the fifth is the count of Us. You may assume that the string contains no uppercase letters.
For example, the call of vowelCount("black banana republic boots") should return an array containing {4, 1, 1, 2, 1}.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
