Question : java concat multiple lists
Answered by : frightened-flamingo-5h7v1gyqtsrg
List<Integer> newList = Stream.of(list1, list2, list3, list4) .flatMap(Collection::stream) .collect(Collectors.toList());
Source : https://stackoverflow.com/a/45281737/1827276 | Last Update : Mon, 29 Aug 22