write a java program to count the number of vowels
Answers
Answered by
2
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.";
int vowels = 0, consonants = 0, digits = 0, spaces = 0;
line = line. toLowerCase();
for(int i = 0; i < line. length(); ++i)
{
char ch = line.
Similar questions
Computer Science,
5 months ago
Social Sciences,
5 months ago
Physics,
11 months ago
Math,
11 months ago
Biology,
1 year ago
Biology,
1 year ago