Question: Which statement is true about the java.util.ArrayList class? Select the one correct answer. (a) The method delete() can be used to delete an element at
Which statement is true about the java.util.ArrayList class?
Select the one correct answer.
(a) The method delete() can be used to delete an element at a specific index in an ArrayList.
(b) The method deleteAll() can be used to delete all elements in an ArrayList.
(c) The method insert() can be used to insert an element at a specific index in an ArrayList.
(d) The method append() can be used to append an element at the end of an ArrayList.
(e) The method replace() can be used to replace the element at a specific index with another element in an ArrayList.
(f) The method find() can be used to determine whether an element is in an ArrayList.
(g) The method capacity() can be used to determine the current capacity of an ArrayList.
(h) None of the above.
Step by Step Solution
3.48 Rating (168 Votes )
There are 3 Steps involved in it
h The method remove can be used to delete an element at a ... View full answer
Get step-by-step solutions from verified subject matter experts
