Method isElement
/* Return true if the multiset contains 1 or
more instances of item. Throw RuntimeException if item out of range. */
public boolean isElement(int item)
if ( item < 0 || item > maxValue )
throw new RuntimeException(
”item out of range for NatMultiset”
else return freq[item] != 0;