If I have a List>, how can I turn that into a List that contains all the objects in the same iteration order
List>
List
flatmap is better but there are other ways to achieve the same
flatmap
List> listOfList = ... // fill List collect = listOfList.stream() .collect(ArrayList::new, List::addAll, List::addAll);