Java Program to check a Character is Vowel or Consonant

Previous
Next

In this post, we will see how to check a Character is Vowel or Consonant.
You just need to check if character is part of set {a,A,e,E,i,I,o,O,u,U}.If it is part of set then it is Vowel else Consonant.

Output:

Enter an Alphabet : g
g is a Consonant

That’s all about Java Program to Check a Character is Vowel or Consonant.

Previous
Next

Join Our News Letter – Stay Updated

Subscribe to Awesome Java Content.




Add Comment

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog