Skip to main content
✏️ Code CompletionJV Java Hard+35 XP

Lambda Comparator

Complete the lambda to sort by name length.

✏️ Fill in the blank
list.sort(Comparator.___(String::length));

✏️ Type the missing code: