/** * Removes <tt>obj</tt> from the set. * * @param obj an <code>Object</code> value * @return true if the set was modified by the remove operation. */ public boolean remove(Object obj) { int index = index(obj); if (index >= 0) { removeAt(index); return true; } return false; }