Question: 02. Write a Java program that will sort first, middle and last names of the user. The program will ask user to enter the first,

 02. Write a Java program that will sort first, middle and
last names of the user. The program will ask user to enter

02. Write a Java program that will sort first, middle and last names of the user. The program will ask user to enter the first, middle and the last names. It will also ask the sorting order e.g. you wll enterfor ascending order and 2' for descending order. The program should display the three names arranged in the specified sort order of their lengths For example, if you enter name as First name: Pradeep Middle name: K

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!