Here you can find the source of toClassArray(Object[] params)
public static Class[] toClassArray(Object[] params)
//package com.java2s; //License from project: LGPL public class Main { public static Class[] toClassArray(Object[] params) { if (null == params) { return new Class[0]; }//w ww .jav a2s .c o m Class[] classParams = new Class[params.length]; for (int i = 0; i < params.length; i++) { classParams[i] = params[i].getClass(); } return classParams; } }