public static <T> T[] toArray(Collection<T> collection, Class<T> componentType) {
		final T[] array = newArray(componentType, collection.size());
		return collection.toArray(array);
	}
public static < T > T [ ] toArray ( Collection < T > collection , Class < T > componentType ) { final T [ ] array = newArray ( componentType , collection . size ( ) ) ; return collection . toArray ( array ) ; }
将集合转为数组

@param <T> 数组元素类型
@param collection 集合
@param componentType 集合元素类型
@return 数组
@since 3.0.9