Here you can find the source of arrayToList(Object[] objs)
public static List arrayToList(Object[] objs)
//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; } }