摘要: ====>我的新浪小铺public class TestReflect {public static void main(String[] args){APerson a=new APerson();Field fields[] = a.getClass().getDeclaredFields();String[] name = new String[fields.length];Object[] value = new Object[fields.length];try{ Field.setAccessible(fields, true); for (int i = 0; i < 阅读全文
posted @ 2010-09-08 12:34 枣阳人在深圳 阅读(20193) 评论(0) 推荐(1) 编辑
摘要: ====>我的新浪小铺package com.landray.kmss.km.mdm.maindata.jdbc.tools;import java.lang.reflect.Field;import java.lang.reflect.Method;import java.lang.reflect.Modifier;public class Test {public static void main(String[] args){try {TestBean bean = new TestBean();String temp = "";bean.setAge(&quo 阅读全文
posted @ 2010-09-08 10:46 枣阳人在深圳 阅读(4041) 评论(0) 推荐(0) 编辑