/** * Interface for a stack of primitive doubles. * @version CSE326 Sp09 * * NOTE: The comments for this interface are horrible! You will * need to write something better for your implementations. */ interface DStack { /** * is empty? */ boolean isEmpty(); /** * push */ void push(double d); /** * pop * @return the deleted value * @throws EmptyStackException if stack is empty */ double pop(); /** * peek * @throws EmptyStackException if stack is empty */ double peek(); }