Java,实现下压(LIFO)栈及其操作,能够动态调整数组大小的实现。
isEmpty() 是否为空;
int size() 返回大小;
resize(int max) 将栈移动到一个大小为 max 的新数组;
void push(Item item) 将元素添加到栈顶;
Item pop() 从栈顶删除元素;
Iterator iterator() 迭代器;
Iterator.hasNext() 是否有下一项;
Iterator.next() 下一项;
Iterator.remove() 移除。
-
Notifications
You must be signed in to change notification settings - Fork 0
haoofXu/JAVA_ResizingArrayStack
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Java,实现下压(LIFO)栈及其操作,能够动态调整数组大小的实现。
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published