Here you can find the source of toSimpleName(String fqn)
public static String toSimpleName(String fqn)
//package com.java2s; //License from project: Open Source License public class Main { public static final char FQN_SEPARATOR = '.'; public static String toSimpleName(String fqn) { int lastSeparatorPos = fqn.lastIndexOf(FQN_SEPARATOR); if (lastSeparatorPos == -1) return fqn; else/*from w w w .ja v a 2s.c o m*/ return fqn.substring(lastSeparatorPos + 1); } }