public static <T>List<T> asList(T... a){
  ArrayList<T> list=new ArrayList<T>();
  for (  T elem : a)   list.add(elem);
  return list;
}

public static < T > List < T > asList ( T ... a ) { ArrayList < T > list = new ArrayList < T > ( ) ; for ( T elem : a ) list . add ( elem ) ; return list ; }
returns a list backed by the specified array .
