Skip to main content

Practice · 1 of 3

Capstone: the shelf

CHALLENGE
Difficulty: beginner+25 XP

Implement shelfPages(ArrayList<Book> shelf, int limit): total pages across books with pages <= limit. Uses selection + accumulation over an object collection.

Back to lesson: Practice: Readiness reps