Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Return a new list with the elements of LIST1 followed by LIST2. */
- <T> List<T> merge(List<T> list1, List<T> list2) {
- List<T> list = new ArrayList<>();
- list.addAll(list1);
- list.addAll(list2);
- return list;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement