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.
For this problem we're expecting only a method.Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.You may use the following packages for this problem without importing them: java.util.ArrayList, java.util.List