Easiest way to convert a List to a Set in Java December 19, 2021 by admin Set<Foo> foo = new HashSet<Foo>(myList);