| Constructor and Description |
|---|
SimpleStack() |
public void push(T data)
public T peek()
public T peek(int depth)
Take a look at the element depth levels deep beneath
the top element (which is at depth 0). This requires O(depth) steps.
depth - public T pop()
public boolean isEmpty()
public int size()
Copyright © 2015. All rights reserved.