栈 复用 Array 动态数组实现栈的各种操作 public interface Stack<E> { int getSize(); boolean isEmpty(); void push(E e); E pop(); E peek(); } 应用 括号匹配 系统调用栈 编辑器 undo