Class Queue

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

Constructors

Queue

public Queue();

Creates a new queue with no elements.

Methods

empty 

public boolean empty();

peek 

public Object peek();

Looks at the object at the front of this queue without removing it

pull 

public Object pull();

Removes the object at the front of queue and returns that object

push 

public Object push(Object item);

Pushes an item onto the end of this queue

search 

public int search(Object o);

Determines if an object is in this queue.