get Full Java Name - Java Reflection

Java examples for Reflection:Class Name

Description

get Full Java Name

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) {
        Class c = String.class;
        System.out.println(getFullJavaName(c));
    }// ww  w .j  av a 2s .c  o  m

    public static String getFullJavaName(Class<?> c) {
        return c.getName();
    }
}

Related Tutorials