code: public E remove(int index) {
          if (index >= mSize)
              throw new IndexOutOfBoundsException("Index: " + index + ", Size: "
                      + mSize);
  
          E ret = mElements.remove(index < 0 ? index + mSize : index);
          mSize--;
          return ret;
      }
docs: remove.
  
  @param index
  @return element