Method insert
/* Insert item into the multiset; throw RuntimeException if out of space. */
public void insert(int item)
/* item is already in multiset. */
else if ( currentSize!=maxSize ){
/* First occurrence of item. */
list[currentSize] = item;
else throw new RuntimeException(
"NatMultiset too large for bounds”