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.
Press Submit to check your solution.
Back to lesson: Practice: Integrated reps