Create a program that uses the Selection sort technique to sort and array of Persons. See the Selection Sort page for a more detailed explanation of the Selection Sort algorithm.
Your program needs:
Person Class.
Private variables
First Name
Last Name
Phone number
One constructor class that instantiates the variables by passing them in directly.
Setter and Getter methods for each variable. Default Eclipse ones are fine.
A toString method to output the variables in a readable fashion.
Main Program. The main programs should sort an array of Persons using the Selection Sort technique. The main program should have the following.
An array of 10 Persons instantiated by passing in the values directly.
Sorts the array of people by last name using the Selection sort technique. Sort them alphabetically from a to z. Use the String method compareTo to determine the order.
Print the array during each major iteration of sorting to see how the sorting works. Print the array after each iteration of your main outer for loop (for i), not the inner loops (j and k).
Prints both the original, unordered array as well as the ordered array.