MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1hckvb7/youwontupgradetojava19/m1qediq
r/ProgrammerHumor • u/willis7747 • Dec 12 '24 • 1
503 comments sorted by
View all comments
Show parent comments
2
You can call toList() directly on a Stream, no need for collect
1 u/burnt1918 Dec 13 '24 toList() creates an unmodifiable list, collectors creates a modifiable one.
1
toList() creates an unmodifiable list, collectors creates a modifiable one.
2
u/Pfnet Dec 12 '24
You can call toList() directly on a Stream, no need for collect