Question: Write a Java program that reads a First name, Middle name and Last name and displays only the Last name and the First name on

  1. Write a Java program that reads a First name, Middle name and Last name and displays only the Last name and the First name on the screen. You must use nextLine() to read the full name and then use substring() and indexOf() in order to display only the last name and the first name in that order. Make sure to display the first name and last name with all capital letters.

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!