Task 6 of 7 · 0 solved · 7 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

8.2 Comparable — sort by name

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Student is naturally ordered by score. Fill in sortByName so that it sorts the list alphabetically by name instead — without changing the Student class.

The program prints [Ada(90), Bo(70), Sam(55)].

Your solution