Ask Question
3 June, 18:48

Write a java method called vowelCount that accepts a String as a parameter and produces/returns an array of integers representing the count of each vowel in the String. The array returned by your method should hold five elements: the first is the count of the 'A's, the second is the count of 'E's, the third 'I''s, the fourth 'O's and the fifth the number of 'U's. Your count should check for both upper and lower case versions. For example the call vowelCount ("I think therefore I am") should return the array [1,3,3,1,0]. Your main program should then allow the user to type in single lines, analyzing each line and print out its count. The program should stop when the user types the word "STOP" by itself.

+5
Answers (1)
  1. 3 June, 22:38
    0
    Answer:AEIOU
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a java method called vowelCount that accepts a String as a parameter and produces/returns an array of integers representing the count ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers