Is there a better way of achieving this?
public static List toList(String[] array) { List list = new ArrayList(array.length);
What about :
List myList = new ArrayList(); String[] myStringArray = new String[] {"Java", "is", "Cool"}; Collections.addAll(myList, myStringArray);