Mega Code Archive

 
Categories / Java Book / 005 Collection
 

0298 Get element from vector

E elementAt(int index) Returns the component at the specified index. E firstElement() Returns the first component (the item at index 0) of this vector. E get(int index) Returns the element at the specified position in this Vector. E lastElement() Returns the last component of the vector.