package datahiding;

/**
 * An example that uses a simple Queue
 *
 * @version 1.0
 * @author  Prof. David Bernstein, James Madison University
 */
public class Example
{


    public static void main(String[] args)
    {
       Queue            q;
       String           poppedOff, userInput;


       q = new Queue();
       q.push("I");
       q.push("love");
       q.push("CS349");


       System.out.println("\n\nHere's what was on the Queue:\n");

       while ((poppedOff = q.pop()) != null)
       {
          System.out.println(poppedOff);
       }
    }

}
