Skip to main content

Practice · 3 of 4

Array to list

CHALLENGE
Difficulty: beginner+25 XP

Implement positives(int[] a): return a NEW ArrayList<Integer> holding the positive values of a, in order. The input array must not be modified.

Back to lesson: Practice: Integrated reps