I have this code and want to turn it from a for each loop to a regular for loop 

```
for(Coordinate neighbors : getNeighbors(current)){
    if(!previous.containsKey(neighbors)){
         previous.put(neighbors, current);
         list.add(neighbors);
    }
}

```

Sorry for bad specification. getNeighbors returns a Set of Coordinates