text: public Vector(int capacity, int capacityIncrement) {if (capacity < 0) {throw new IllegalArgumentException();}elementData = newElementArray(capacity);elementCount = 0;this.capacityIncrement = capacityIncrement;}