Question: Create a java application that has two classes (class and testclass) Working with Strings. (Rearranging parts of a string containing names) a. Read in a

Create a java application that has two classes (class and testclass)

Working with Strings. (Rearranging parts of a string containing names)

a. Read in a persons name in the format

Last-name, First-name

Change it to the format

First-name Last-name

Then print the original name and the reformatted name. If the name is missing a comma on input, alert the user and dont re-format the name.

b.) Add a loop. Use 999 as a sentinel to exit the loop.

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!