i want help to build a java program on the following interface
please its very urgent...
package jp.co.worksap.intern
/**
* The stack class represents a last in first out stack of objects.
* And so this class can look at the object which has the highest or lowest value
* So every object on the stack must be comparable to each other
* @param <E>
*/
public interface ISortableStack<E extends Comparable<E>> {
public void push(E e);
/**
* Pushes an item oat the top of the stack
* If the element is null , throws null pointer exception
*/
public E pop();
/**
* Removes an item at the top of the stack stack and returns the object as the value of this function
* If stack is empty throws EmptyStackException
* @return
*/
public E peekMidElement();
/**
* Looks at the object which has the middle value among all the objects without removing it from the stack.
* Returns the object which has the value of order <code>(size()/2)+1</code>
* <pre>
* e.g.
* When the stack has the following values (1,2,5,4,2,6)
* The method returns 6 and doesn't move the objects
* </pre>
* If the stack is empty throws EmptyStackException
* @return
* @throws EmptyStackException
*/
public E peekHighestElement();
/**
* Looks at the object which has the highest value among all the objects without removing from the stack.
* Returns the object which has the value of order <code>size()</code>
* <pre>
* e.g.
* When the stack has the following values (1,2,5,4,2,6)
* The method returns 6 and doesn't move the objects
* </pre>
* If the stack is empty throws EmptyStackException
* @return
* @throws EmptyStackException
*/
public E peekLowestElement();
/**
* Looks at the object which has the lowest value among all the objects without removing from the stack.
* Returns the object which has the value of order <code>1</code>
* <pre>
* e.g.
* When the stack has the following values (1,2,5,4,2,6)
* The method returns 1 and doesn't move the objects
* </pre>
* If the stack is empty throws EmptyStackException
* @return
* @throws EmptyStackException
*/
public int size();
/**
* Returns the number of objects in the stack
* @return
*/
}

