Here you can find the source of simpleName(String qualifiedClassName)
public static String simpleName(String qualifiedClassName)
//package com.java2s; //License from project: Apache License public class Main { public static String simpleName(String qualifiedClassName) { String packageName = packageName(qualifiedClassName); return packageName.isEmpty() ? qualifiedClassName : qualifiedClassName.substring(packageName.length() + 1); }/*from ww w. j ava 2 s . c om*/ public static String packageName(String qualifiedClassName) { int pos = qualifiedClassName.lastIndexOf('.'); return (pos >= 0) ? qualifiedClassName.substring(0, pos) : ""; } }