import java.util.Arrays; import java.util.List; import java.util.function.IntPredicate; public class TestClass { private static final List numList = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); public static int count(IntPredicate predicate) { int count = 0; for (int num : numList) { if (predicate.test(num)) { count++; } } return count; } public static void main(String[] args) { int evenNumCoun..