Question: Assume you have the following variable declarations: SimpleReader in = new SimpleReader1L(); SimpleWriter out = new SimpleWriter1L(); Write program fragments (i.e., you do not need

Assume you have the following variable declarations:

SimpleReader in = new SimpleReader1L();

SimpleWriter out = new SimpleWriter1L();

Write program fragments (i.e., you do not need to write complete programs) that read a line of input as a String and print:

Only the uppercase letters in the String

Every second letter of the String

The String with all vowels replaced by an underscore

The number of vowels in the String

The positions of all vowels in the String

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!