Computer Science, asked by asmitpanda11, 11 months ago

write a java program to count the number of vowels​

Answers

Answered by SamikBiswa1911
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