Which method can be applied to an existing Stream to return a stream with a different generic

Question:

Which method can be applied to an existing Stream to return a stream with a different generic type?

A. distinct()

B. iterate()

C. peek()

D. sorted()

E. filter()

F. None of the above.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: