Collections class provides methods to make List, Set or Map elements as synchronized:
public static List synchronizedList(List l){} public static Set synchronizedSet(Set s){} public static SortedSet synchronizedSortedSet(SortedSet s){} public static Map synchronizedMap(Map m){} public static SortedMap synchronizedSortedMap(SortedMap m){}
Write a program to remove the duplicate elements in an array and print Eg) Array Elements - 12, 34, 12, 45, 67, 89 O/P: 12,34,45,67,89