Other Vector Methods

  1. set(): changes an element of the vector
  2. size(): returns the size of the vector
  3. toArray(): converts the vector into an array
  4. toString(): converts the vector into a String
  5. contains(): searches the vector for specified element and returns a boolean result