+ 1

LinkedList vs. ArrayList

LinkedList vs. ArrayList The most notable difference between the LinkedList and the ArrayList is in the way they store objects. The ArrayList is better for storing and accessing data, as it is very similar to a normal array. The LinkedList is better for manipulating data, such as making numerous inserts and deletes. In addition to storing the object, the LinkedList stores the memory address (or link) of the element that follows it. It's called a LinkedList because each element contains a link to the

25th Oct 2017, 7:16 AM
Bashdar Abdalrahman MOHAMMED
Bashdar Abdalrahman MOHAMMED - avatar
1 Odpowiedź
+ 1
Summary: - Use an ArrayList when you need rapid access to your data. - Use a LinkedList when you need to make a large number of inserts and/or deletes.
25th Oct 2017, 7:18 AM
Bashdar Abdalrahman MOHAMMED
Bashdar Abdalrahman MOHAMMED - avatar