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 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
Get step-by-step solutions from verified subject matter experts
