Java tutorial
//package com.java2s; import java.util.Collection; import java.util.concurrent.CopyOnWriteArrayList; public class Main { public static <E> CopyOnWriteArrayList<E> getCopyOnWriteArrayList() { return new CopyOnWriteArrayList<E>(); } public static <E> CopyOnWriteArrayList<E> getCopyOnWriteArrayList(Collection<? extends E> collection) { return new CopyOnWriteArrayList<E>(); } public static <E> CopyOnWriteArrayList<E> getCopyOnWriteArrayList(E[] toCopyIn) { return new CopyOnWriteArrayList<E>(toCopyIn); } }