Question: Need help creating code from the task below Read in a line of text Use String class methods to manipulate and compare the string(s) Background

Need help creating code from the task below

Need help creating code from the task below Read in a line

Read in a line of text Use String class methods to manipulate and compare the string(s) Background reading In this section of ZyBooks, you've covered arrays and how they store information. We've seen and worked with strings plenty of times in previous labs. So in this lab we will be further exploring how they work. Basically, strings are sequences of characters strung together. In essence, they are arrays of characters. So you could use something like: However, Java has the String class that manipulates the char [] for you when you use the built in methods. In this situation: Both print statements both result in printing the letter H because the string's underlying structure is the same as the char[]. As classes have yet to be covered at this point, we will leave it at this. However, you are free and encouraged to read the documentation and read about Java classes. For this program, you will read a sentence from the user and manipulate it using string methods. Before doing any printing, convert the string into all lowercase. For each of the points, manipulate the input string and print the output on separate lines: Print only the vowels in the words (not including y) Take the first character of the line and print it at the end of the sentence(i.e. "Java is good", the output would be "ava is good J") Print all everything in uppercase Print only every other character starting from the first character

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!