/* * StackInterface.java * * provides an interface for all of the funtions * a Stack should implement * * If a class implements this interface, it can * then be used as a Stack... */ interface StackInterface { public boolean isEmpty(); public Object peek(); public Object pop(); public void push(Object data); public String toString(); }