Java
mediumQ1
What is the output of: int result = Stream.of(1, 2, 3, 4) .filter(n -> n % 2 == 0) .mapToInt(n -> n * 2) .sum(); System.out.println(result);
1 / 15
What is the output of: int result = Stream.of(1, 2, 3, 4) .filter(n -> n % 2 == 0) .mapToInt(n -> n * 2) .sum(); System.out.println(result);