Jedit 4.1

edu.bsu.cs.algorithm
Class Queue

java.lang.Object
  |
  +--edu.bsu.cs.algorithm.Queue

public class Queue
extends Object

An implementation of a Queue of integers.

Since:
19 Feb 1998
Version:
31 Mar 1999
Author:
Aaron Nall

Constructor Summary
Queue()
          Constructs an empty Queue.
 
Method Summary
 void add(int newInt)
          Adds an integer to the end of the Queue.
 int remove()
          Removes an integer from the beginning of the Queue and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queue

public Queue()
Constructs an empty Queue.

Method Detail

add

public void add(int newInt)
Adds an integer to the end of the Queue.


remove

public int remove()
Removes an integer from the beginning of the Queue and returns it.


Jedit 4.1