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:
- Prompt the user for a name that includes a first, middle, and last name. Input these names into a single String or String Buffer.
- Break this single name string into three individual strings for the First, Middle, and Last names.
- Convert and print each individual name in the following way
- All Upper Case
- All Lower Case
- Initial letter upper case and the remaining letters lower case.
- 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
