Question: Input a String from the user (use Scanner class method nextLine). Then, write a for loop that counts how many of each vowel (a, e,
Input a String from the user (use Scanner class method nextLine). Then, write a for loop that counts how many of each vowel (a, e, i, o, u) are found in the String. After the loop is over, display the number of times each vowel was found. Case does not matter. 'A' and 'a' should be counted as the vowel a. Once you have the for loop working do the problem again using a while loop.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
