public synchronized void addElement(E object){
  if (elementCount == elementData.length) {
    growByOne();
  }
  elementData[elementCount++]=object;
  modCount++;
}

public synchronized void addElement ( E object ) { if ( elementCount == elementData . length ) { growByOne ( ) ; } elementData [ elementCount ++ ] = object ; modCount ++ ; }
adds the specified object at the end of this vector .
