Replaces a for-each loop which iterates over a collection or array with an equivalent
for
loop that uses an index to iterate over the collection or array.