Guest User

Untitled

a guest
Oct 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public interface DequeInterface {
  2. public void addFront(Object o);
  3. // adds item o to the front of the deque
  4. public void addRear(Object o);
  5. // adds item o to the rear of the deque
  6. public Object removeFront();
  7. // removes the item at the front and returns it
  8. public Object removeRear();
  9. // removes the item at the rear and returns it
  10. public int size();
  11. // returns the number of items which are currently
  12. // stored in the deque
Add Comment
Please, Sign In to add comment