Numbers

Report a typo

Given the following part of code:

List<Integer> numbers = Arrays.asList(4, 5, 3, 8, 6, 2, 7);

List<Integer> filtered = numbers.stream()
        .filter(n -> n * n < 36)
        .collect(Collectors.toList());

What elements does the filtered list contain?

Select one option from the list
___

Create a free account to access the full topic