Skip to main content

Checkpoint: parallel lists

Challenge on lesson: Checkpoint: parallel lists

CHALLENGE
Difficulty: beginner+25 XP

Implement ArrayList<String> topScorers(ArrayList<String> names, ArrayList<Integer> scores, int cutoff): return a new list of every name whose matching score (same index) is strictly greater than cutoff, in order. The two lists have equal length.

Back to lesson: Checkpoint: parallel lists