The count operation

Report a typo

A stream has the count operation which returns the number of elements in the stream. The operation can be easily implemented using the reduction method.

Suppose, you have an instance of IntStream named stream. Select the correct count implementation.

Select one option from the list
___

Create a free account to access the full topic