unlike the situation in stackthe items in queue don' always extend all the way down to index in the array after some items are removedfront will point at cell with higher indexas shown in figure in figure notice that front lies below rear in the arraythat isfront has lower index as we'll see in momentthis isn' always true the peek button we show one other queue operationpeek peek finds the value of the item at the front of the queue without removing the item (like insert and removepeekwhen applied to queueis also called by variety of other names if you press the peek buttonyou'll see the value at front transferred to the number field the queue is unchanged this peek(method returns the value at the front of the queue some queue implementations have rearpeek(and frontpeek(methodbut usually you want to know what you're about to removenot what you just inserted maxsize- empty cells rear front empty cells figure queue with some items removed the new button if you want to start with an empty queueyou can use the new button to create one empty and full if you try to remove an item when there are no more items in the queueyou'll get the can' removequeue is empty error message if you try to insert an item when all the cells are already occupiedyou'll get the can' insertqueue is full message