Get class canonical Name - Android java.lang.reflect

Android examples for java.lang.reflect:Class

Description

Get class canonical Name

Demo Code


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

public class Main {
    public static String canonicalName(@NonNull final Class cls) {
        return cls.getCanonicalName();
    }/*  www. j a v  a  2  s .c  om*/
}

Related Tutorials