Java Class Simple Name Get toSimpleName(String classPackageName)

Here you can find the source of toSimpleName(String classPackageName)

Description

to Simple Name

License

Open Source License

Declaration

public static String toSimpleName(String classPackageName) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static String toSimpleName(String classPackageName) {

        int lastIndexOf = classPackageName.lastIndexOf('.');
        if (lastIndexOf >= 0)
            return classPackageName.substring(lastIndexOf + 1);
        return "";
    }/*from ww w. ja  v a 2s . c  om*/
}

Related

  1. simpleNameOf(String s)
  2. simpleNameWithoutEnhance(Class clazz)
  3. toSimpleName(Class type)
  4. toSimpleName(final String qualifiedName)
  5. toSimpleName(String className)
  6. toSimpleName(String fqn)
  7. toSimpleName(String qname)
  8. ToSimpleName(String str)