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