Here you can find the source of toClassArray(Collection
public static Class<?>[] toClassArray(Collection<Class<?>> collection)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static Class<?>[] toClassArray(Collection<Class<?>> collection) { return collection == null ? null : collection.toArray(new Class[collection.size()]); }/*from w w w .ja v a2 s . c o m*/ }