摘要: 博客地址:http://www.cnblogs.com/maowang1991/archive/2013/04/15/3023236.html 菜鸟教程:http://www.runoob.com/design-pattern/proxy-pattern.html 阅读全文
posted @ 2016-07-04 13:10 atzuge 阅读(153) 评论(0) 推荐(0)
摘要: 第一种:在main输出,通过反射实现 1 public static void main(String[] args) throws Exception { 2 Integer a = 1; 3 Integer b = 2; 4 swap(a, b); 5 System.out.println("a=" + a + ... 阅读全文
posted @ 2016-07-04 13:08 atzuge 阅读(3894) 评论(0) 推荐(0)