@@ -0,0 +1,767 @@
+package reflection;%0A%0Aimport java.lang.reflect.Field;%0Aimport java.lang.reflect.Method;%0A%0Apublic class ClassTest implements Runnable %7B%0A    %0A    public static void main(String%5B%5D args) %7B%0A        Class%3C?%3E c = ClassTest.class;%0A        System.out.println(c.getName());%0A        System.out.println(%22superclass: %22 + c.getSuperclass().getName());%0A        for (Class%3C?%3E ic : c.getInterfaces()) %7B%0A            System.out.println(%22interfaces: %22 + ic.getName());%0A        %7D%0A        for (Field f : c.getFields()) %7B%0A            System.out.println(%22field: %22 + f.getName());%0A        %7D%0A        for (Method m : c.getMethods()) %7B%0A            System.out.println(%22method: %22 + m.getName());%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void run() %7B%0A        System.out.println(%22run!%22);%0A    %7D%0A    %0A%7D%0A

add ClassTest.java