In this project, our main goal is to understand the conditional statements in Java.
Develop a program that checks if a character is a vowel or a consonant.
- Create a
charvariablevalueand assign it the valuea. - Use conditional statements to :
- Check if the value is a character, not a number or symbol.
- Check if a Character is a Vowel or a consonant.
- Print a message for each case (Not an alphabet character, is a vowel, is a consonant ).
public class Main {
public static void main(String[] args) {
/* add your code here */
}
}