Here you can find the source of simpleName(String className)
private static String simpleName(String className)
//package com.java2s; //License from project: Apache License public class Main { private static String simpleName(String className) { String[] parts = className.split("\\."); if (parts.length == 0) { return null; }//from w ww .ja va2s.c om return parts[parts.length - 1]; } }