Question: Create java programm, that has class Person which implements interace Comparable Compare person on the basis of their names. Ask the user to enter 10
Create java programm, that has class Person which implements interace Comparable
Compare person on the basis of their names.
Ask the user to enter 10 names and then create 10 Person objects
Use the compareTo () method to get the first and last person from a sorted list of people, and then write those people to standard output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
