摘要: package com.itheima;public class Test1 { /** 1、 写一个ArrayList类的代理,实现和ArrayList中完全相同的功能,并可以计算每个方法运行的时间。 * * @param args * */ public static void main(String[] args) { @SuppressWarnings("unchecked") List arrayListProxy = (List) Proxy.newProxyInstance( /* 定义代理类的加载器,用于创建类的对象 */ ArrayList.class.. 阅读全文
posted @ 2014-04-07 19:42 In order to tomorrow 阅读(939) 评论(1) 推荐(0) 编辑