Referring to the ListIterator method in the accepted (Matthew T. Staebler's) solution. How is using the ListIterator better than the method here?
public static Set replace(List strings) {
Set set = new HashSet<>();
for (String s: strings)
set.add(s.toLowerCase());
return set;
}