Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface DequeInterface {
- public void addFront(Object o);
- // adds item o to the front of the deque
- public void addRear(Object o);
- // adds item o to the rear of the deque
- public Object removeFront();
- // removes the item at the front and returns it
- public Object removeRear();
- // removes the item at the rear and returns it
- public int size();
- // returns the number of items which are currently
- // stored in the deque
Add Comment
Please, Sign In to add comment