The document contains a Java program that counts the number of vowels in a given string, 'Hello World'. It iterates through each character of the string and checks if it is a vowel, incrementing a counter accordingly. Finally, it prints the total number of vowels found.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views
Public Class VowelCounter {
The document contains a Java program that counts the number of vowels in a given string, 'Hello World'. It iterates through each character of the string and checks if it is a vowel, incrementing a counter accordingly. Finally, it prints the total number of vowels found.