In Java 8:
List
.collect(Collectors.toList());
Off the top of my head, I can shorten it by one line:
List
newList.addAll(listTwo);
by James Palmer
In Java 8:
List
.collect(Collectors.toList());
Off the top of my head, I can shorten it by one line:
List
newList.addAll(listTwo);