Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Sebastian Röder
13,878 PointsflatMap and Stream::of vs. Collection::stream
I tried to use flatMap the other day on a stream of one of the collection classes instead of arrays and it did not work as demonstrated in the video with Stream::of. It seems like Collection::stream is a more broadly applicable solution for this problem. A good explanation can be found on Stackoverflow.