Combine filters

Report a typo

Given a stream of integers named intStream.

Another stream is obtained by applying three filter operations sequentially:

IntStream resultStream = intStream.filter(n -> n > 10).filter(n -> n < 20).filter(n -> n != 15);

How can you combine these operations to always get the same result?

Select one option from the list
___

Create a free account to access the full topic