I’m looking at the docs for the IntStream, and I see an toArray method, but no way to go directly to a List<Integer>

Surely there is a way to convert a Stream to a List?

5 Answers
5

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *