摘要: import java.lang.reflect.Array; public class ChangeArrayDemo { public static void main(String[] args) { int temp[] = { 1, 2, 3 }; int newTemp[] = (int[]) arrayInc(temp, 5)... 阅读全文
posted @ 2014-09-04 17:55 塔斯曼 阅读(218) 评论(0) 推荐(0) 编辑
摘要: import java.lang.reflect.Array; public class ClassArrayDemo { public static void main(String[] args) { int temp[] = { 1, 2, 3 }; Class c = temp.getClass().getComponentType... 阅读全文
posted @ 2014-09-04 17:19 塔斯曼 阅读(231) 评论(0) 推荐(0) 编辑
摘要: import java.lang.reflect.Field; public class InvokeFieldDemo { public static void main(String[] args) throws Exception { Class cl = null; Object obj = null; cl ... 阅读全文
posted @ 2014-09-04 15:23 塔斯曼 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-09-04 14:52 塔斯曼 阅读(151) 评论(0) 推荐(0) 编辑