What is the easiest way to convert a List to a Set in Java?
List
Set
Set<Foo> foo = new HashSet<Foo>(myList);