In this tutorial, you will learn the following:
- Use ASCII to determine if an input is vowel or consonant
- More usage of the AND(&&) operator.
- More understanding of the OR(||) operator.
You would need the following inorder to following this tutorial:
- An Integrated Development Environment(IDE) installed that can run Java (e.g Eclipse, IntelliJ,Netbeans)
- JDK 1.X installed on your Pc
- Of course willingness to learn
Difficulty
- Intermediate
Description
In this tutorial, an application is developed where the user enters a character and then this character is checked to know if it is a vowel or a consonant.
The ASCII range for upper case and lower case alphabets are used to ensure that the user only enters an alphabet.
Lastly, the .equals() method in the String class is used to determine if the entered input is a vowel and any other is a consonant.
Video Tutorial Link:
NB: This video has only being shared on my Youtube Channel
Tutorial codes can be gotten from this github repository: https://github.com/generalkolo/Javacodes
Posted on Utopian.io - Rewarding Open Source Contributors