X667: Odd Values

Given an array of integers numbers, return a new array with just the values in numbers that are odd. The new array should just be of the exact size needed.

Examples:

oddValues({0,1,2,5}) -> {1,5}
oddValues({10,2,4}) -> {}

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.