code: public void set(int i, byte value) {
          if (i < 0 || i >= size) {
              throw new IndexOutOfBoundsException();
          }
          elements[i] = value;
      }
docs: Sets the i'th element of the array list to the given value.
  @param i The index to set.
  @param value The value to set.