Question: Sort Student array in increasing order of classification (1-freshman, 2-sophomore, 3-junior, 4-senior). If classifications are the same, name with lower alphabetical order should be first.
Sort Student array in increasing order of classification (1-freshman, 2-sophomore, 3-junior, 4-senior). If classifications are the same, name with lower alphabetical order should be first.
TODOs: (1) Make Student class a Comparable class (2) Add code in Main.java to sort.
Your program should display the following:
Student: Zac 1 Student: Edward 2 Student: Heather 2 Student: Linda 3 Student: Aaron 4 Student: Jane 4
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
