Basics_Que_12

Home / Java Practice Question / Basics_Que_12

Basics_Que_12


Write a program to input any alphabet and check whether it is vowel or Not

program : 

public class Loop {

public static boolean isCheck(char ch){

if(ch=='a' || ch=='e'|| ch=='i' || ch=='o' | ch=='u')
{
return true;
}else if(ch=='A' || ch=='E'|| ch=='I' || ch=='O' | ch=='U') {
return true;
}else{
return false;
}
}

}