
package test;

public interface Stack {

	/**
	 * Tests if this stack is empty.
	 */
	boolean empty();
	
	/**
	 * Looks at the object at the top of this stack without removing it from the stack.
	 * @return the object at the top of this stack.
	 */
	Object peek();

	/**
	 * Removes the object at the top of this stack and returns that object as the value of this function.
	 * @return The object at the top of this stack.
	 */
	Object pop();
	
	/**
	 * Pushes an item onto the top of this stack.
	 * @param item the item to be pushed onto this stack.
	 * @return the item argument.
	 */
	Object push(Object item);
}
