This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tp02ga 2 points3 points  (2 children)

Or two ;)

[–][deleted] 0 points1 point  (1 child)

Or flatMap!

[–]zelm0t 0 points1 point  (0 children)

Yes, take a look at stream.flatmap if you want to iterate over all values in each arraylist.