打印类元数据
//package com.nowjava;/*n o w j a v a . c o m*/ import static java.lang.System.out; public class Main { public static void printClassMetadata(Class<?> c) { String className = c.getCanonicalName(); out.format("Class => %s", className); out.format("%n"); } }