Java Array Merge mergeArrays(final Object[] a1, final Object[] a2, final Object[] merge)

Here you can find the source of mergeArrays(final Object[] a1, final Object[] a2, final Object[] merge)

Description

merge Arrays

License

Open Source License

Declaration

public static Object[] mergeArrays(final Object[] a1, final Object[] a2, final Object[] merge) 

Method Source Code

//package com.java2s;

public class Main {
    public static Object[] mergeArrays(final Object[] a1, final Object[] a2, final Object[] merge) {
        System.arraycopy(a1, 0, merge, 0, a1.length);
        System.arraycopy(a2, 0, merge, a1.length, a2.length);
        return merge;
    }/*from  ww w .j a  va2  s  .  co m*/
}

Related

  1. mergeArray(T[] objs, String concatenator)
  2. mergeArrayIntoString(final Object[] array, String middleDelimiter, String lastDelimiter)
  3. mergeArrayObject(Object[] buf1, Object[] buf2)
  4. mergeArrays(byte[] buf1, byte[] buf2)
  5. mergeArrays(final byte[] buf1, final byte[] buf2)
  6. mergeArrays(int[] theArrayA, int[] theArrayB)
  7. mergeArrays(long[] alldistances, long[] currentUserDistances)
  8. mergeArrays(Object[] arr1, Object[] arr2, Object[] destinationArray)
  9. mergeArrays(Object[] first, Object[] second)