Java Program to count the number of vowels in a given text.

Hey there!

Welcome to ClearUrDoubt.com.

In this post, we will look at a Java Program to count the number of vowels in a given text.

This can be achieved using “String.toCharArray()” and “switch” statements.

 

Here is the Java Program:

 

Output:

 

 

 

Happy Learning :).

Please leave a reply in case of any queries.

Leave a Reply

Your email address will not be published. Required fields are marked *