code: public void add (E e) {
  		// is size greater than capacity increase capacity
  		if (size == data.length) {
  			grow();
  		}
  
  		data[size++] = e;
  	}
docs: Adds the specified element to the end of this bag. if needed also increases the capacity of the bag.