Untitled

mail@pastecode.io avatar
unknown
java
a year ago
375 B
0
Indexable
Never
package Assignment2;

public class Q3
{
    public static void main(String[] args)
    {
        QueueArray queue = new QueueArray(5);
        queue.enqueue(1);
        queue.enqueue(17);
        queue.enqueue(40);
        queue.enqueue(52);
        queue.enqueue(76);
        queue.display(); 
        System.out.println(queue.dequeue()); 
        queue.display();

    }
}