62,614
社区成员
发帖
与我相关
我的任务
分享
short s = 1;
s += 1;
import java.lang.reflect.*;
public class Reflection {
int i = 10;
public static void main(String args[]) throws ClassNotFoundException{
Class<? extends Object> c = Class.forName("Reflection");
Field[] fieldList = c.getDeclaredFields();
for(Field f : fieldList)
System.out.println(f.getName() +": "+ f.getType());
}
}