How to Determine if an Input is a Vowel or Consonant in Java using Eclipse IDE

in #utopian-io6 years ago (edited)

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

Sort:  

@edetebenezer, No matter approved or not, I upvote and support you.

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @edetebenezer I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.029
BTC 58098.46
ETH 3134.93
USDT 1.00
SBD 2.38