Java examples for Reflection:Class Name
get Full Java Name
//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(); } }