Home » JAVA Programming » Collections » Question
  1. Which of this method is used to change an element in a LinkedList Object?
    1. redo()
    2. add()
    3. change()
    4. set()
    5. None of these
Correct Option: D

An element in a LinkedList object can be changed by first using get() to obtain the index or location of that object and the passing that location to method set() along with its new value.



Your comments will be displayed only after manual approval.