Question: Please answer Lab 9-7,the below picture is only the file that I couldnt upload so you wouldnt have to text all of it out! s,
s, a Lab 9-7: Using Java's Built-in Methods In this lab, you com Stringings to all uppercase or all lowercase. The program prompts the user to enter any end the program, the user can enter done. For each String entered, call the built- you complete a partially written Java program that includes built-in methods that to all u To 173 es tolowerCaseO and toUpperCaseO. The program should call these methods se metrsng object, followed by a dot (. ), followed by the name of the method. Both of an example: ith the String changed to uppercase or lowercase. Here is In rs, ter String sample "This is a String." String result; result-sample.toLowerCaseO: result-sample.toUpperCaseO; 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. Open the source code file named ChangeCase. java using Notepad or the text editor of your choice. Write the Java statements as indicated by the comments. Save this source code file in a directory of your choice, and then make that directory your working directory. Compile the source code file, ChangeCase. java. Execute the program. 1. 2. 3. in 4. 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
