标签: java
对于作业,我的任务是:
// Create a stack with the default capacity 10. The stack expands // its internal array when the number of elements pushed() into it // would exceed the internal capacity.
我知道堆栈是用:
Stack<T> a = new Stack<T>();
我该怎么做呢?