Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    static public String getClassNameOnly(Class activityCls) {
        return getClassNameOnly(activityCls.getName());
    }

    static public String getClassNameOnly(String clsName) {
        return clsName.substring(clsName.lastIndexOf(".") + 1);
    }
}