Professional Documents
Culture Documents
Lab Goal : This lab is designed to give you more practice writing a compareTo method used in multiple
utility classes.
Lab Description : Alter the program in part 1 above. Before printing the data to the screen, call
Arrays.sort to sort the Student objects based on the Student’s last name.
You must write a compareTo() method for your Student class that will return the appropriate number. Use
String’s compareTo method as an example.
Class Diagram : After part 2, the class structure will look like the diagram below: