Question: Write the code for a Java program that performs the following tasks: Prompt the user for a name that includes a first, middle, and last

Write the code for a Java program that performs the following tasks:

  1. Prompt the user for a name that includes a first, middle, and last name. Input these names into a single String or String Buffer.
  2. Break this single name string into three individual strings for the First, Middle, and Last names.
  3. Convert and print each individual name in the following way
    1. All Upper Case
    2. All Lower Case
    3. Initial letter upper case and the remaining letters lower case.
  4. Create a new single name string with the following pattern (for example, assume the name Sara Frank Jones) Jones, F. Sara

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!