SyntaxFix
Write A Post
Hire A Developer
Questions
flatmap is better but there are other ways to achieve the same
flatmap
List<List<Object>> listOfList = ... // fill List<Object> collect = listOfList.stream() .collect(ArrayList::new, List::addAll, List::addAll);