Write a program that reads a string and displays the number of vowels in it. This main program program is primarily responsible for handling the input-output issues, and it will call a method to get the number of vowels.
public static int countVowels(String text)