4import java.util.NoSuchElementException;
 
   14  public boolean is_empty() { 
return data_.empty();  }
 
   17  public T 
top() throws NoSuchElementException {
 
   19      throw new NoSuchElementException();
 
   23  public T 
pop() throws NoSuchElementException {
 
   25      throw new NoSuchElementException();
 
Implementation of a stack based on aud.Vector.
void push(T x)
Push x onto stack.
boolean is_empty()
Is stack empty?
T pop()
Pop element from stack.
Implementation of an array-based vector.
Interface for an ADT stack.
AuD lecture: Data structures, algorithms, examples.