code: public void set(int index, byte[] items, int start, int length) {
      rangeCheck(index, index + length);
      for (int i = 0; i < length; i++) {
        elements[index + i] = items[start + i];
      }
    }
docs: Sets a range of elements of this array.
  
  @param index
  The index of the first element to set.
  @param items
  The array containing the values to set.
  @param start
  The index into <code>items</code> at which the values to
  insert start.
  @param length
  The number of items to insert.
  @throws IndexOutOfBoundsException
  if
  <code>index &lt; 0 || index + items.length &gt; size()</code>.