1: @author Frank M. Carrano, Timothy M. Henry
2: @version 5.0
3: /** Removes one unspecified entry from this bag, if possible.
4: @return Either the removed entry, if the removal was successful,
5: or null otherwise. */
6: public T remove()
7: {
8: checkIntegrity();
9: T result = removeEntry(numberOfEntries - 1);
10: return result;
11: } // end remove