Java Array Merge merge(T[] first, T[] second)

Here you can find the source of merge(T[] first, T[] second)

Description

merge

License

Open Source License

Declaration

public static <T> List<T> merge(T[] first, T[] second) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.ArrayList;
import java.util.Collections;

import java.util.List;

public class Main {
    public static <T> List<T> merge(T[] first, T[] second) {
        ArrayList<T> merged = new ArrayList<>();
        Collections.addAll(merged, first);
        Collections.addAll(merged, second);
        return merged;
    }/*from   ww w . j  a va  2 s. com*/
}

Related

  1. merge(String[] strArr1, String[] strArr2)
  2. merge(String[] strArray)
  3. merge(String[]... arrays)
  4. merge(T[] array, T[] temp, int left, int middle, int right)
  5. merge(T[] array1, T[] array2)
  6. merge(T[] first, T[] second)
  7. merge(T[] left, T... right)
  8. merge(T[]... arrays)
  9. merge(T[]... many)