Java Class Name Get classNameSubName(String className)

Here you can find the source of classNameSubName(String className)

Description

class Name Sub Name

Declaration

public static String classNameSubName(String className) 

Method Source Code

//package com.java2s;

public class Main {

    public static String classNameSubName(String className) {
        int index = className.lastIndexOf(".");
        if (index != -1) {
            return className.substring(index + 1);
        }/*w  w w  . j av a  2 s . c  o m*/
        return className;
    }
}

Related

  1. className(String fullyQualifiedName)
  2. className(String nodeName)
  3. className(String path)
  4. className(String underScore)
  5. classNames(String description)
  6. classNameSubPackage(String className)
  7. classNameWithType(String className, String type)
  8. getClassName(Class type)
  9. getClassName(Integer typeValue)