Java Class Name Get className(String classFullName)

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

Description

class Name

License

Open Source License

Declaration

public static String className(String classFullName) 

Method Source Code

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

public class Main {
    public static String className(String classFullName) {

        // localizing the position o the last dot.
        int positionLastPoint = classFullName.lastIndexOf(".") + 1;

        // obtaining class name
        return classFullName.substring(positionLastPoint);

    }//  w ww  . j a v  a  2  s . com
}

Related

  1. classname(Object obj)
  2. className(Object obj)
  3. className(Object object)
  4. className(Object value)
  5. className(String classFile, String pre)
  6. className(String fullyQualifiedName)
  7. className(String nodeName)
  8. className(String path)
  9. className(String underScore)