CS/자료구조

When to use LinkedList over ArrayList in Java?

bright-jun 2022. 5. 4. 16:35

https://stackoverflow.com/questions/322715/when-to-use-linkedlist-over-arraylist-in-java?page=1&tab=trending#tab-top 

 

When to use LinkedList over ArrayList in Java?

I've always been one to simply use: List<String> names = new ArrayList<>(); I use the interface as the type name for portability, so that when I ask questions such as this, I can rewor...

stackoverflow.com

저작자표시 (새창열림)