Question: In java, print the number of words in the String that contain the vowel characters A, E, I, O, & U. Only count words that
In java, print the number of words in the String that contain the vowel characters "A", "E", "I", "O", & "U". Only count words that contain the characters "A", "E", "I", "O", & "U" and ignore case when counting vowels. Do not count the vowel "Y". If a word does not contain a vowel print the word and state it does not contain any vowel characters. Make it so that it has two other methods other than the main method. One method for counting the vowels and another to check if the word has a vowel. Please explain each steps in detail.
Example if input is:
Do or Do Not, There is No Try!
the output is:
Please enter a one line sentence: The word Try does not contain vowels. The number of words that contain vowels is 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
