无福卷毛的博客栈,继承了Vector /** * 取出并删除栈顶的元素 * * @return The object at the top of this stack (the last item * of the <tt>Vector</tt> object). * @throws EmptyStac...
欢谷悠扬的博客Vector可以指定初始容量大小和每次扩容的增量大小,这是ArrayList里面没有的东西 public Vector(int initialCapacity, int capacityIncrement) { super(); if (initialCapacity < 0) throw new ...