The document contains two versions of a Java program that modifies sentences by adding the article 'an' before words that start with a vowel. The first version handles capitalization differently, while the second version uses a StringBuilder for constructing the new sentence. Both programs prompt the user for input and output the modified sentence accordingly.
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)
7 views2 pages
Program
The document contains two versions of a Java program that modifies sentences by adding the article 'an' before words that start with a vowel. The first version handles capitalization differently, while the second version uses a StringBuilder for constructing the new sentence. Both programs prompt the user for input and output the modified sentence accordingly.