栈和队列
Stack 继承 Vector, Vector是线程安全的,每个方法都是 Synchronized关键字。
方法:
push Pushes an item onto the top of this stack
pop Removes the object at the top of this stack and returns that object as the value of this function.
peek Looks at the object at the top of this.
原创
2021-04-23 20:16:25 ·
66 阅读 ·
0 评论