Java Array Merge mergeToArray(T... args)

Here you can find the source of mergeToArray(T... args)

Description

merge To Array

License

Open Source License

Declaration

public static <T> ArrayList<T> mergeToArray(T... args) 

Method Source Code

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

import java.util.ArrayList;
import java.util.Arrays;

public class Main {
    public static <T> ArrayList<T> mergeToArray(T... args) {
        ArrayList<T> out = new ArrayList<T>();

        out.addAll(Arrays.asList(args));

        return out;
    }//from   ww w .j  av a  2 s. c o m
}

Related

  1. mergeStringArrays(String array1[], String array2[])
  2. mergeStringArrays(String array1[], String array2[], String array3[])
  3. mergeStringArrays(String[] array1, String[] array2)
  4. mergeStringArrays(String[][] arrayOfArrays)
  5. mergeStrings(String[] x, String[] y)