Loading lesson…
Level 1 · Apprentice0 XP
Describe what you want from a collection, and make absence explicit.
Step 1 / 5
ProblemYou want the names of adult users, sorted. The loop makes you read mutable lists and index variables before you see the intent.
← → step
Before this: Lambdas and functional interfaces
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Given List<Order> with customer() and total(), return the names of the 3 customers with the highest total spend, using one stream pipeline.