Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to get Synchronized List from ArrayList

Java: How to get Synchronized List from ArrayList
{filelink=4860}

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class ArrayL_Sync
 {
  public static void main(String[] args)
  {
    ArrayList array_L = new ArrayList();
    // Create a synchronized list
    List list = Collections.synchronizedList(array_L);
  }
}

Users who found this page were searching for:

  • how to display time in java
  • python remove all first occurrence of numbers

No comments yet.

Leave a Comment