listing the queue java program /queue java /demonstrates queue /to run this programc>java queueapp import java io */for / ///////////////////////////////////////////////////////////////class queue private int maxsizeprivate int[quearrayprivate int frontprivate int rearprivate int nitems//public queue(int /constructor maxsize squearray new int[maxsize]front rear - nitems //public void insert(int /put item at rear of queue if(rear =maxsize- /deal with wraparound rear - quearray[++rearj/increment rear and insert nitems++/one more item //public int remove(/take item from front of queue int temp quearray[front++]/get value and incr front if(front =maxsize/deal with wraparound front nitems--/one less item return temp//public int peekfront(/peek at front of queue