public static < T > List < T > createList ( T ... args ) { ArrayList < T > newList = new ArrayList < T > ( ) ; Collections . addAll ( newList , args ) ; return newList ; }
Convenience method for building a list from vararg arguments