Task 4 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 — highest scorer

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

The Student class already implements Comparable by score. Fill in best so that it returns the student with the highest score.

One line is enough — Collections.max uses your compareTo. The program prints Ada(90).

Your solution