摘要: Java数组扩容的原理 1)Java数组对象的大小是固定不变的,数组对象是不可扩容的。 2)利用数组复制方法可以变通的实现数组扩容。 3)System.arraycopy()可以复制数组。 4)Arrays.copyOf()可以简便的创建数组副本。 5)创建数组副本的同时将数组长度增加就变通的实现了数组的扩容。 源码展示: 1 public class Arrays { 2 /** 3 * @param original: the array to be copied 4 * @param newLength: the length of the cop... 阅读全文
posted @ 2012-10-12 20:21 时光独白 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1. HTML5http://www.mhtml5.com/http://html5.eoe.cn/http://www.html5china.com/2. InfoQhttp://www.infoq.com/cn/articles/code-coverage3. 虚拟化云计算http://www.qyjohn.net/ 阅读全文
posted @ 2012-10-12 20:20 时光独白 阅读(89) 评论(0) 推荐(0) 编辑