When to use LinkedList<> over ArrayList<>?
Posted
by sdellysse
on Stack Overflow
See other posts from Stack Overflow
or by sdellysse
Published on 2008-11-27T01:36:35Z
Indexed on
2010/03/23
12:53 UTC
Read the original article
Hit count: 251
I've always been one to simply use List<String> names = new ArrayList<String>();
I use the interface as the type name for portability, so that when I ask questions such as these I can rework my code.
When should LinkedList should be used over ArrayList and vice-versa?
© Stack Overflow or respective owner