Java List Create createListWithObjects(Object... objects)

Here you can find the source of createListWithObjects(Object... objects)

Description

create List With Objects

License

Apache License

Declaration

public static ArrayList<Object> createListWithObjects(Object... objects) 

Method Source Code


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

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

public class Main {
    public static ArrayList<Object> createListWithObjects(Object... objects) {
        ArrayList<Object> list = new ArrayList<Object>();
        list.addAll(Arrays.asList(objects));
        return list;
    }//w  w w  .ja v a2 s.c  o m
}

Related

  1. createListFromList(Collection collection)
  2. createListOfObjects(T... elements)
  3. createListOfOneItem(Object item)
  4. createListOfValidNumberOfPoints(int[] terms, int min, int max)
  5. createListWithArray(Object[] array)
  6. createMapFromList(List list)
  7. createMapOfObjects(List keys, List values)
  8. createMatrix(List source, List target)
  9. createMergedRegex(List regexes)