public class Queue1 { private final int MAX = 50; private int[] info; private int length; public Queue1() { info = new int[MAX]; length = 0; } public void enqueue(int item) { info[length] = item; length ++; } public int dequeue() { // fill the following int item = 0; if(length>=1) { item = info[0]; for(int i=0; i