code: public void add(double[] vals) {
          ensureCapacity(size + vals.length);
          System.arraycopy(vals, 0, data, size, vals.length);
          size += vals.length;
      }
docs: Appends an array to the end of this list.
  
  @param vals an array to be appended to this list.