Which method collects stream elements into a List?
Correct answer
Collectors.toList()
Explanation
`Collectors.toList()` collects elements from a stream into a List.
By Ram Sharma · · 23 views
`Collectors.toList()` collects elements from a stream into a List.
By Ram Sharma · · 23 views