opendap/src/main/java/opendap/util/SortedTable.java
public synchronized Object remove(Object key) {
        int index = keys.indexOf(key);
        if (index != -1) {
            Object prev = elements.elementAt(index);
            keys.removeElementAt(index);
            elements.removeElementAt(index);
            return prev;
        } else {
            return null;
        }
    }
public synchronized Object remove(Object key) {
        int index = keys.indexOf(key);
        if (index != -1) {
            Object prev = elements.elementAt(index);
            keys.removeElementAt(index);
            elements.removeElementAt(index);
            return prev;
        } else {
            return null;
        }
    }
Removes the key (and its corresponding value) from this table.  If the
key is not in the table, do nothing.

@param key the key to remove.
@return the value to which the key had been mapped, or null if the key
did not have a mapping.