Here you can find the source of extractClassNames(Class[] classArray)
public static String[] extractClassNames(Class[] classArray)
//package com.java2s; //License from project: Apache License public class Main { public static String[] extractClassNames(Class[] classArray) { String[] array = new String[classArray.length]; for (int i = 0; i < classArray.length; i++) { array[i] = classArray[i].getName(); }//from w w w.j a v a 2 s . co m return array; } }