Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. public static Object[] merge(Object[] arrOne, Object[] arrTwo) {
  2.         Object[] newArray = new Object[arrOne.length + arrTwo.length];
  3.         System.arraycopy(arrOne, 0, newArray, 0, arrOne.length);
  4.         System.arraycopy(arrTwo, 0, newArray, arrOne.length, arrTwo.length);
  5.         return newArray;
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement