techhipbettruvabetnorabahisbahis forumutaraftarium24edueduedusedusedueduedueduedusedu Java Program To Check Vowel Or Consonant | 5 Ways
Latest :

Java Program To Check Vowel Or Consonant | 5 Ways

Java program to identify whether the given character is a vowel or not. With the help of the below program, you will get to know how to write and print whether the given number is a vowel. We have written the program in three different ways, using if else statement, using switch case, user-defined method – learn more about switch case in Java with examples.

If you are good at programming even you can write the code in different formats. We are pretty sure that you can easily understand the following program. Just before that, we would like to share what are vowels and consonants in alphabets.

  • What are the Vowels ?

A: Def: A speech sound which is produced with the vibration of vocal chords without audible friction, which is being blocked by teeth, tongue or lips :P.

We know that there are Five vowels: a, e, i, o, u or A, I, E, O, U.

  • What are the consonants then?

Apart from A, E, I, O, U rest of the alphabets are consonants. That’s it.

Basically, we can write the code in two different ways, using if statement or if-else statement or Java switch case statement.

There you go:

Java Program To Print Whether The Given Alphabet is Vowel Or Consonant

1. Using Switch Case

Here we are using switch case, generally switch is used one out of multiple options, an if-else ladder can also be used to select one out of multiple options. In simple words, we can say the switch is a multi-branch statement.

Here the combination of both small letters and capital letters are represented as vowels. With the help of the case statement, the output will display on what the user is going to be entered. If it is out of 10 alphabets, it will display vowel or else consonant.

3 Sample Outputs:

2.  Using If else Statement 

  • There you go another program using if else statement with sample outputs – learn more about if else statement here.
Output:
 

3. Using Method

Java program to print whether the given character is vowel or consonant using Method or function with sample outputs.

Output:
That’s it. Here we go to the list of other programs:

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduseduseduedusedusedueduseduedu
x

Check Also

Java Program To Reverse An Array | Programs

Java program to reverse an array – We will discuss the various methods to reverse ...

grandpashabetgrandpashabetgrandpashabethttps://mobilebarhawaii.com/ballettea tropazcasibom girişcasibomhacklinkgrandpashabetbets10onwinonwin girişgrandpashabetholiganbetatakoy escortatakoy escortsisli escortjojobetCasibomtürk pornomavibet girişcratosroyalbetdeneme bonusu veren sitelergrandpashabetonwinligobetgonabetJojobetsahabethttps://www.escortbayanlariz.net/betwoonsahabetcasibomcasibom girişEskişehir escortjojobetbakırköy escortdeneme bonusu veren sitelerhalkali escortgrandpashabet girişholiganbet güncel girişankara escort bayancasino siteleriultrabetgrandpashabet girişholiganbetonwinholiganbetgrandpashabetesenyurt anal escortPadişahbetnakitbahiscasibom girişgrandpashabetİstanbul Escorthttps://www.gvscolombia.com/betebetdeneme bonusu veren sitelerJojobet GirişstarzbetsavoybettingsavoybettingjojobetfixbetBetturkey girişcasibom güncel girişkucukcekmece escortholiganbetimajbetkingroyalmadridbetmatbetmavibetmeritbetmeritkingonwinotobetmeritbetimajbetcasibomsekabetbetvolebetordercasinolevantArtemisbetmadridbetmavibetmeritking girişotobetjojobetholiganbetholiganbet girişonwincasibom girişcasibom girişsahabet girişmadridbetbetturkey girişmarsbahis giriş güncelsahabet güncel giriştipobetistanbul escortscanlı bahisstarzbetultrabetjojobetenbetvbettrromabetcasibom girişcasibomcasibom güncel girişjojobetmegabahisjojobet girişmarsbahiszbahisperabetbakırköy escortdeneme bonusu veren sitelerbetebet güncel girişdumanbetsightcarebilyoneronwinonwinsahabetbets10,bets10 giriş,bets10 güncel giriştipobetmarsbahis,marsbahis güncel giriş , marsbahis giriş,marsbahis adresmarsbahis,marsbahis güncel giriş , marsbahis giriş,marsbahis adressekabetpradabettarafbetmilanobetmilanobetpusulabettempobetpusulabettempobetpusulabetjojobetbets10madridbetBostancı escort Bağcılar escortmatbetjojobet,jojobet girişsekabet girişjojobet,jojobet girişjojobetizmir escortcasibomtipobetjasminbetİstanbul Escortbahis sitelericasibomjojobet girişJojobet Girişankara escortzbahiszbahis girişzbahis güncel girişholiganbetcasibomsonbahisdeneme bonusu veren siteler 2025vaycasinocasinomaxizbahisotobet girişimajbetcasibomvaycasinojojobetbetturkeymarsbahis girişmatbet girişmarsbahisbetturkeybetexperdeneme bonusu veren sitelermariobetwinxbetbetexperbetofficegonebetgrandpashabetgrandpashabet güncelpusulabetpusulabetcasibom girişonwin,onwin giriş,onwin güncel giriş,onwin giriş adresitipobetbetebetmarsbahisultrabetholiganbetjojobetfixbetkulisbetnakitbahispinbahisrestbettipobettrendbetultrabetjojobetholiganbetotobetbetexperpusulabetasyabahisparibahiskulisbettipobetHoliganbet girişfixbetvaycasinojojobet,jojobet girişonwinhttps://sahipleniyorum.com/jojobetjojobet girişultrabetmatbetcasibomcasibom girişmaltepe escortextrabet girişmecidiyeköy escortsekabet girişjojobettipobetbetturkeygonabettipobetcasibom girişmavibetmavibet girişmaltcasinomaltcasino girişmavibet güncelJojobet girişMAVİBETİMAJBETextrabetzbahismarsbahisbahis forumcasibom giriştakipçi hilesivaycasinocashback girişjojobetgonebetjojobetjojobetgüncel girişcasinoroyalcasibom