摘要: System.arraycopy Arrays.copyOf();该方法对于不同的数据类型都有相应的方法重载 Arrays.copyOfRange()方法 代码: System.arraycopy Arrays.copyOf 基本数据类型 Arrays.copyOf 复杂数据类型 Arrays.co 阅读全文
posted @ 2018-06-12 15:45 smokerBig 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Vector 类 源码解析: //将数组elementData 的全部元素都拷贝到数组 anArray中 public synchronized void copyInto(Object[] anArray) { //通过System.arraycopy 完成复制 System.arraycopy( 阅读全文
posted @ 2018-06-12 14:40 smokerBig 阅读(108) 评论(0) 推荐(0) 编辑