Who convert linked list to arraylist | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Who convert linked list to arraylist

9th Sep 2020, 6:59 PM
Gerson Zefanias Cumbe
Gerson Zefanias Cumbe - avatar
3 Answers
9th Sep 2020, 7:09 PM
Rohit Kh
Rohit Kh - avatar
9th Sep 2020, 9:48 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Create a linked list. LinkedList<Object> obj1 = new LinkedList<>(); Create an array list and pass the linked list reference to the array list. ArrayList<Object> obj2 = new ArrayList<>(obj1);
9th Sep 2020, 8:27 PM
Avinesh - avatar