import java.io.*;
class VowelWord
{
String str;
int freq;
public VowelWord()
{
str = "Evergreen Publications, Jalandhar, Punjab";
freq = 0; } void readstr( )throws IOException
{
BufferedReader br = new
BufferedReader (new InputStreamReader (System.in));
System.out.println('Enter a Sentence.'); str = br.readLine ();
}
void freq vowel()
{
String w;
int i , l;
char ch;
l = str.length();
for (i = 0; i< 1; i++)
{
w = " ";
while(str.charAt (i) ! = '' &&
str.chartAt(i)! =' ')
{ w = w + str.charAt (i); i++;
}
w = w.toLowerCase();
ch = w.charAt(0);
if (ch == 'a' || ch == 'e' || ch = 'i' || ch = 'o' || ch = 'u') { freq++;
}
}
}
void display()
{
System.out.println("Original String : " + str);
System.out.println("Frequency of Words Beginning with vowel are : " + freq);
}
public static void main(String args[])throws IOException
{
VowelWord ob = new VowelWord();
ob.readstr();
ob.ffeq _vowel();
ob.display( );
}
}