Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. /** Return a new list with the elements of LIST1 followed by LIST2. */
  2. <T> List<T> merge(List<T> list1, List<T> list2) {
  3. List<T> list = new ArrayList<>();
  4. list.addAll(list1);
  5. list.addAll(list2);
  6. return list;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement