get Class Name from qualified Name - Android java.lang

Android examples for java.lang:Class

Description

get Class Name from qualified Name

Demo Code


public class Main{

    public static String getClassName(String qualifiedName) {
        return qualifiedName.substring(qualifiedName.lastIndexOf(".") + 1);
    }/*from www. j  ava 2 s  .co m*/

}

Related Tutorials