Get Synchronized Map from Java HashMap ?
>> Tuesday, May 24, 2011
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
HashMap hashMap = new HashMap();
Map map = Collections.synchronizedMap(hashMap);
}
}
0 comments:
Post a Comment