Here you can find the source of classToString(Class[] array, String separator, String defaultValue)
private static String classToString(Class[] array, String separator, String defaultValue)
//package com.java2s; //License from project: LGPL public class Main { private static String classToString(Class[] array, String separator, String defaultValue) { if (null == array) { return defaultValue; } else {/*from w w w . j a va2 s . c o m*/ StringBuilder result = new StringBuilder(); for (int i = 0; i < array.length; i++) { if (result.length() > 0) { result.append(separator); } result.append(array[i].getName()); } return result.toString(); } } }