How to find vowels in an entered string?

If no one ch of string array does not match with vowels then i=0 and prints “There are no vowels in an entered string”. 1) In this program, we have vowels (String str) function to find the vowels in the entered string. 2) Read the entered String using scanner object sc.nextLine (), and store it in the string variable s.
For More Information Please Refer:


You May Also Like to Read: