Java tutorial
//package com.java2s; public class Main { public static String prettyShortParams(Class... params) { StringBuilder signature = new StringBuilder("("); for (int i = 0; i < params.length; i++) { signature.append(humanShort(params[i])); if (i < params.length - 1) signature.append(','); } signature.append(")"); return signature.toString(); } public static String humanShort(Class n) { return n.getSimpleName(); } }