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

public virtual void addElement(E @object){lock (this){if (elementCount == elementData.Length){growByOne();}elementData[elementCount++] = @object;modCount++;}}
