public class Queue extends >Vector { // Constructors public Queue(); // Methods public boolean empty(); public Object peek(); public Object pull(); public Object push(Object item); public int search(Object o); }
>Vector | +--Queue
public Queue();Creates a new queue with no elements.
public boolean empty();
public Object peek();Looks at the object at the front of this queue without removing it
public Object pull();Removes the object at the front of queue and returns that object
public Object push(Object item);Pushes an item onto the end of this queue
public int search(Object o);Determines if an object is in this queue.