Class Queue

java.lang.Object
  |
  +--Queue

public class Queue
extends java.lang.Object


Constructor Summary
Queue()
           
 
Method Summary
 void clear()
           
 java.lang.Object dequeue()
           
 void enqueue(java.lang.Object item)
           
 java.lang.Object head()
           
 boolean isEmpty()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Queue

public Queue()
Method Detail

isEmpty

public boolean isEmpty()

head

public java.lang.Object head()

enqueue

public void enqueue(java.lang.Object item)

dequeue

public java.lang.Object dequeue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clear

public void clear()

main

public static void main(java.lang.String[] args)