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