Easiest way to convert a List to a Set in Java September 8, 2022 by Tarik Set<Foo> foo = new HashSet<Foo>(myList);