contains
Tests whether this Queue contains the given item.
This function iterates through the items in the Queue and tests each one until it either finds an entry matching the given element or it reaches the end of the Queue items.
Return
true if this Queue contains an item that is equal to the given element, otherwise false.
Parameters
element
Item to test for.