Kotlinlearncs.online LogoJava
Return to List

Solve: List of Evens

Created By: Justin Maier
/ Version: 2026.1.1

Write a method named listOfEvens that takes an array of ints as an argument and returns a List<Integer> that contains only the even values from the array.

You should first assert that the passed array is not null.

Related Lessons

Stuck? You may find these lessons helpful:


Attribution must link to this page: https://www.learncs.online/solve/java/list-of-evens/[email protected]