Java Array to List arrayToList(Object[] objs)

Here you can find the source of arrayToList(Object[] objs)

Description

array To List

License

Open Source License

Declaration

public static List arrayToList(Object[] objs) 

Method Source Code

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

import java.util.*;

public class Main {
    public static List arrayToList(Object[] objs) {
        if (objs == null)
            return null;
        List ret = new ArrayList(objs.length);
        for (Object obj : objs) {
            ret.add(obj);/*ww w .j av a  2 s.c o  m*/
        }
        return ret;
    }
}

Related

  1. arrayToCommaList(Object[] array)
  2. arrayToCommaList(String[] array)
  3. arrayToList(final T... items)
  4. arrayToList(int[] intArr, int cnt)
  5. arrayToList(String... stringArray)
  6. arrayToList(String[] array, String delim)
  7. arrayToList(String[] str)
  8. arrayToList(T[] array)