QueueTest.java

import hlt.language.util.Queue;
import hlt.language.tools.Misc;
import java.util.Iterator;

public class QueueTest
{
  public static void main (String[] args)
    {
      Queue s = new Queue();

      System.out.println(s);
      System.out.println(Misc.view(s,"QUEUE",5,70));
      
      s.push("1");
      s.push("2");
      s.push("3");
      s.push("4");
      s.push("5");
      System.out.println(s);
      System.out.println("Popping: "+s.pop());
      System.out.println("Popping: "+s.pop());
      System.out.println("Popping: "+s.pop());
      System.out.println(s);
      s.push("6");
      s.push("7");
      s.push("8");
      s.push("9");
      s.push("10");
      s.push("11");
      s.push("12");
      s.push("13");
      s.push("14");
      System.out.println(s);
      System.out.println("Popping: "+s.pop());
      System.out.println("Popping: "+s.pop());
      System.out.println("Popping: "+s.pop());
      System.out.println("Popping: "+s.pop());
      System.out.println("Popping: "+s.pop());
      System.out.println("Popping: "+s.pop());
      s.push("15");
      s.push("16");
      s.push("17");
      s.push("18");
      s.push("19");
      s.push("20");
      s.push("21");
      s.push("22");
      s.push("23");
      System.out.println(s);

      System.out.println(Misc.view(s,"QUEUE",5,70));
    }
}


This file was generated on Sat May 11 07:29:50 CEST 2019 from file QueueTest.java
by the hlt.language.tools.Hilite Java tool written by Hassan Aït-Kaci