Here you can find the source of arrayToCollection(Object[] objs)
@SuppressWarnings({ "rawtypes", "unchecked" }) public static List arrayToCollection(Object[] objs)
//package com.java2s; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Main { @SuppressWarnings({ "rawtypes", "unchecked" }) public static List arrayToCollection(Object[] objs) { return new ArrayList(Arrays.asList(objs)); }//from w ww . j a va2 s.co m }