Ask Question
12 September, 22:07

Assume v is a vector of integers that has been declared and initialized. Write a statement that adds the value 42 to the vector.

+2
Answers (1)
  1. 12 September, 22:29
    0
    v. add (42);

    Explanation:

    A vector is an inbuilt class in Java, which extends AbstractList class of Java. It is a kind of dynamically allocated arrays which does not need size at the time of declaration. It can expand as much as it can. AbstractList class implements the List interface of Java which has some generic functions like add (), sort (), etc.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Assume v is a vector of integers that has been declared and initialized. Write a statement that adds the value 42 to the vector. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers