stacks and queues the insert button by repeatedly pressing the ins button in the queue workshop appletyou can insert new item after the first pressyou're prompted to enter key value for new item into the number text fieldthis should be number from to subsequent presses will insert an item with this key at the rear of the queue and increment the rear arrow so it points to the new item the remove button similarlyyou can remove the item at the front of the queue using the rem button the item is removedthe item' value is stored in the number field (corresponding to the remove(method returning value)and the front arrow is incremented in the appletthe cell that held the deleted item is grayed to show it' gone in normal implementationit would remain in memory but would not be accessible because front had moved past it the insert and remove operations are shown in figure rear rear front front new item inserted at rear of queue rear rear rear front front front two items removed from front of queue figure operation of the queue class methods