Is there a concurrent List in Java's JDK?

AlikElzin-kilaka picture AlikElzin-kilaka · Aug 2, 2011 · Viewed 310k times · Source

How can I create a concurrent List instance, where I can access elements by index? Does the JDK have any classes or factory methods I can use?

Answer

user177800 picture user177800 · Aug 2, 2011

There is a concurrent list implementation in java.util.concurrent. CopyOnWriteArrayList in particular.