code: public void set(final int i, final int[] e) {
          if (i >= list.length) list = Array.copyOf(list, newSize(i + 1));
          list[i] = e;
          size = Math.max(size, i + 1);
      }
docs: Sets an element at the specified index.
  
  @param i index
  @param e element to be set