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

5.3 Lists — smallest after sorting

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

Fill in smallest so that it returns the alphabetically first word of the list.

Sort first, then take index 0. The program prints apple, and then the list itself — now sorted, because Collections.sort changes it in place.

Your solution