please refer to the above attachment and give me the correct answer
Answers
Answer:
In Java, you use double quotes (" ") for strings and single quotes (' ') for characters. Now, to check whether ch is vowel or not, we check if ch is any of: ('a', 'e', 'i', 'o', 'u') . This is done using a simple if..else statement. We can also check for vowel or consonant using a switch statement in Java.
Please make me brainliest
I hope that it will help you
Be happy ARMY
Write a program in java to accept an alphabet from the user and print whether it is vowel or not.
In the above program, 'i' is stored in a char variable ch. In Java, you use double quotes (" ") for strings and single quotes (' ') for characters.
Now, to check whether ch is vowel or not, we check if ch is any of: ('a', 'e', 'i', 'o', 'u'). This is done using a simple if..else statement.
Pls refer to the attachment for the syntax and c.ode