Collection.toArray(new T[0]) or Collection.toArray(new T[size]), that's the question.