Get Unqualified Name
public class Util{ public static String getUnqualifiedName(Class<?> clazz) { if (clazz == null) return ""; String name = clazz.getName(); return (name.substring(name.lastIndexOf('.') + 1)); } }