深入理解Java集合框架系列-第五章 java中的堆栈

Stack本身通过扩展Vector而来,而Vector本身是一个可增长的对象数组(a growable array of objects)那么这个数组的哪里作为Stack的栈顶,哪里作为Stack的栈底?答案只能从源代码中寻找,在jdk1.6中,通过peek()方法注释The object at the top of this stack (the last item of the Vector
相关文章
相关标签/搜索