public static <T>Set<T> synchronizedSet(){
  return Collections.synchronizedSet(new HashSet<T>());
}

public static < T > Set < T > synchronizedSet ( ) { return Collections . synchronizedSet ( new HashSet < T > ( ) ) ; }
creates a new synchronized set .
