convert two list to a List of pair java code example
Example 1: java add a list to a list
List mylist.addAll(secondList);
Example 2: join two lists java
List<String> newList = Stream.concat(listOne.stream(), listTwo.stream())
.collect(Collectors.toList());