Java Array Merge merge(int[] array1, int[] array2)

Here you can find the source of merge(int[] array1, int[] array2)

Description

merge

License

LGPL

Declaration

public static int[] merge(int[] array1, int[] array2) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {

    public static int[] merge(int[] array1, int[] array2) {
        int[] dest = new int[array1.length + array2.length];
        System.arraycopy(array1, 0, dest, 0, array1.length);
        System.arraycopy(array2, 0, dest, array1.length, array2.length);
        return dest;
    }//from   w  w w  .  j a  v  a  2s.c om
}

Related

  1. merge(int[] a, int l, int m, int h)
  2. merge(int[] a, int[] b)
  3. merge(int[] a, int[] b)
  4. merge(int[] a, int[] temp, int fromIndex, int toIndex)
  5. merge(int[] array, int i, int mid, int max)
  6. merge(int[] x1, int[] x2)
  7. merge(int[]... arrs)
  8. merge(long[] theArray, long[] workSpace, int lowPtr, int highPtr, int upperBound)
  9. merge(Object[][] array1, Object[][] array2)