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

public Vector ( int capacity , int capacityIncrement ) { if ( capacity < 0 ) { throw new IllegalArgumentException ( ) ; } elementData = newElementArray ( capacity ) ; elementCount = 0 ; this . capacityIncrement = capacityIncrement ; }
constructs a new vector using the specified capacity and capacity increment .
