Here you can find the source of toInterfacesString(Class>[] classes, StringBuffer sb)
public static String toInterfacesString(Class<?>[] classes, StringBuffer sb)
//package com.java2s; //License from project: Open Source License public class Main { public static String toInterfacesString(Class<?>[] classes, StringBuffer sb) { sb.setLength(0);/*from www .j a va2 s . co m*/ for (int i = 0; i < classes.length; i++) { if (i > 0) { sb.append(","); } sb.append(classes[i].getName()); } return sb.toString(); } }