What is the easiest way to convert a List to a Set in Java?
List
Set
Set<Foo> foo = new HashSet<Foo>(myList);
1.4m articles
1.4m replys
5 comments
57.0k users