public static String classSimpleName(String className){
  int separator=className.lastIndexOf('.');
  if (separator == -1) {
    return className;
  }
 else {
    return className.substring(separator + 1);
  }
}

public static String classSimpleName ( String className ) { int separator = className . lastIndexOf ( '.' ) ; if ( separator == - 1 ) { return className ; } else { return className . substring ( separator + 1 ) ; } }
extracts the class simple name out of a string containing a fully qualified class name .
