Vectory
属性:
// 保存Vector中数据的数组
protected Object[] elementData;
// 实际数据的数量
protected int elementCount;
// 容量增长系数
protected int capacityIncrement;
private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8;
构造函数:
方法:
// 将数组Vector的全部元素都拷贝到数组anArray中
// 将当前容量值设为 =实际元素个数
// 确定Vector的容量。
// 确认“Vector容量”的帮助函数
扩容:
// 设置容量值为 newSize
其他方法参照listArray集合
参考:
https://www.cnblogs.com/zedosu/p/6662231.html