Get Synchronized List from Java ArrayList
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class
GetSynchronizedListFromArrayListExample
{
public static void main(String[] args)
{
ArrayList arrayList = new ArrayList();
List list =
Collections.synchronizedList(arrayList);
}
}
No comments:
Post a Comment