Scanner input=new Scanner(System.in);
System.out.print("Please enter a string: ");
String str=input.nextLine();
Ques3_1 s= new Ques3_1(str);
do{
System.out.println("1) Count the number of vowels\n2) Count the number of consonants\n3) Count both vowels and consonants\n4) Enter another string\n5) Exit the program");
System.out.print("Your choose is: ");
int press=input.nextInt();
if(press==1)
{
//s. getCountVowel();
System.out.println("The number of vowel is "+s.getCountVowel());
System.out.println("");
}
else if(press==2)
{
//s.getCountConsonant();
System.out.println("The number of consonant is "+s.getCountConsonant());
System.out.println("");
}
else if(press==3)
{
s.getCountVowelConsonant();
System.out.println("The number of both vowel and consonant is "+s.getCountVowelConsonant());
System.out.println("");
}
else if(press==4)
{
System.out.print("Please enter another string: ");
str=input.nextLine();