Hmmm... the Java Iterator has a remove() method but not a replace(T replacement) method.
Iterator
remove()
replace(T replacement)
Is there an efficient way to
ListIterator.set as returned by List.listIterator() or List.listIterator(int)
(set wouldn't make any sense for, say, a Set iterator.)
set
Set