Get class simple Name - Android java.lang.reflect

Android examples for java.lang.reflect:Class

Description

Get class simple Name

Demo Code


//package com.java2s;
import android.support.annotation.NonNull;

public class Main {
    public static String simpleName(@NonNull final Class cls) {
        return cls.getSimpleName();
    }// ww w  .  j  a  va  2s.c o  m
}

Related Tutorials