Here you can find the source of simpleClassName(Class> type)
public static String simpleClassName(Class<?> type)
//package com.java2s; /*//w ww . ja v a 2s . co m * Copyright (c) 2006 Rick Mugridge, www.RimuResearch.com * Released under the terms of the GNU General Public License version 2 or later. */ public class Main { public static String simpleClassName(Class<?> type) { // use // Class.getSimpleName() // in jdk1.5 String className = type.getName(); int dot = className.lastIndexOf("."); if (dot >= 0) className = className.substring(dot + 1); dot = className.lastIndexOf("$"); if (dot >= 0) className = className.substring(dot + 1); return className; } }