Need Help 131

Question Description

2. Open the Main class and review its code.

3. Run the application to make sure it works correctly.

Modify the application so it allows two entries on the same line

4. In the Main class, modify the code that gets the length and the width so it prompts the user to enter

the length and width on the same line. Then, parse the string that’s entered by the user to get one

String object for the length and another for the width.

5. Modify the code that displays the data for the Rectangle object so that it includes the length and

width.

6. Run the application to make sure it works correctly. If the user enters 100 and 20, the data that’s

printed to the console should look something like this:

Posted in Uncategorized