1: @author Frank M. Carrano, Timothy M. Henry 2: @version 5.0 3: /** Removes one occurrence of a given entry from this bag. 4: @param anEntry The entry to be removed. 5: @return True if the removal was successful, or false if not. */ 6: public boolean remove(T anEntry) 7: { 8: checkIntegrity(); 9: int index = getIndexOf(anEntry); 10: T result = removeEntry(index); 11: return anEntry.equals(result); 12: } // end remove