Here you can find the source of simpleName(final String fqn)
public static String simpleName(final String fqn)
//package com.java2s; //License from project: Apache License public class Main { public static String simpleName(final String fqn) { int dotIndex = fqn.lastIndexOf("."); if (dotIndex == -1) { return fqn; }//www .j av a 2 s. c o m if (dotIndex == fqn.length() - 1) { throw new IllegalArgumentException("Bad class name (trailing dot) [" + fqn + "]"); } return fqn.substring(dotIndex + 1); } }