public static List < String > buildList ( String ... args ) { List < String > newList = new ArrayList < String > ( ) ; Collections . addAll ( newList , args ) ; return newList ; }
This method builds a list of string object from a variable argument list as input