code: public synchronized Object removeElement(int theIndex) {
          if (theIndex < 0 || theIndex > currentCapacity - 1) {
              throw new IllegalArgumentException("Index is out of range.");
          }
          Object theElement = theElementArray[theIndex];
          if (theElement != null) {
              theElementArray[theIndex] = null;
              elementCount--;
              occupiedSlots.clear(theIndex);
          }
          return theElement;
      }
docs: Remove the object from the LookupTable which is referenced by the
  supplied Index value.
  
  @param theIndex
  an int containing the index value of the element to remove
  from the LookupTable
  @return the Object which was removed from the LookupTable - null if no
  object was removed.