3 ms·The advantage of iterators is the abstraction. Collections like maps and sets don't even have indexes.by rzhikharevich 10y agoThe advantage of iterators is the abstraction. Collections like maps and sets don't even have indexes.