5. Write a Java program to ask a user to enter a letter and check if it is a vowel or
consonant using menu based program
Answers
Answered by
0
Answer:
Java Program to Count the Number of Vowels and Consonants in a Sentence
- public class Count
- public static void main(String[] args)
- String line = "This website is aw3som3.";
- 1int vowels = 0, consonants = 0, digits = 0, spaces = 0;
- line = line. toLowerCase();
- for(int i = 0; i < line. length(); ++i)
- char ch = line.
Similar questions