code: public Object remove(int index) {
      Object o = opt(index);
      this.myArrayList.remove(index);
      return o;
    }
docs: Remove an index and close the hole.
  
  @param index
  The index of the element to be removed.
  @return The value that was associated with the index, or null if there was no value.