Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    @SuppressWarnings("rawtypes")
    public static String getObjShortClassName(Object object) {
        Class clazz = object.getClass();
        return clazz.getName().substring(clazz.getName().lastIndexOf(".") + 1);
    }
}