Problem

Using Java's Built-in Methods In this lab, you complete a partially written Java pro...

Using Java's Built-in Methods In this lab, you complete a partially written Java program that includes built-in methods that convert 5tH ngs to all uppercase or all lowercase. The program prompts the user to enter any String. To end the program, the user can enter done. For each String entered, call the built-in methods toLowerCase() and toUpperCase(). The program should call these methods using a Stri ng object, followed by a dot ( . ), followed by the name of the method. Both of these methods return a String with the St ring changed to uppercase or lowercase. Here is an example:

The source code file provided for this lab includes the necessary variable declarations and the necessary input and output statements. Comments are included in the file to help you write the remainder of the program.

1. Open the source code file named ChangeCase.java using Notepad or the text editor of your choice.

2. Write the Java statements as indicated by the comments.

3. Save this source code file in a directory of your choice, and then make that directory your working directory.

4. Compile the source code file, ChangeCase.java.

5. Execute the program.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 9
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT