Appends or inserts the specified element into the specified vector.
Parameters:
v
Note: The null
value passed in this parameter
will cause an error.
element
index
If not specified, the element will be added at the end of the vector.
If less than 0, the element will be inserted at the first position.
If greater or equal the current vector size, the element will be added at the end of the vector.
addElements(), removeElement()
You may call this function in a more method-like style:
v.addElement(element)
v.addElement(element1).addElement(element2)