r/javahelp • u/LFrancis • Apr 30 '20
ArrayList vs LinkedList
So I understand that for different situations, either the ArrayList API or the LinkedList API will be more efficient. So what should I look for in terms of design that will tell me which one of those structures is recommended? Is it more related to preference rather than specific uses?
Thanks!
17
Upvotes
4
u/[deleted] Apr 30 '20
For the specific java collections , generally you end up using ArrayList ; the data structure itself (a link list ) has uses - but probably not in the form of that collection.