摘要: public static void main(String[] args) { Student stu1 = new Student(); stu1.setId(1); stu1.setName("张三"); // Class c = Student.class.getClass(); try { Class c = stu1.getClass(); Field f[] = c.getDeclaredFields(); System.out.println("字段数组大小:"+f.length); System.out.println("字段 阅读全文
posted @ 2013-06-21 23:55 全新时代-小小程序员大梦想 阅读(271) 评论(0) 推荐(0) 编辑