Hello everyone. I have a TreeSet<State> that I want to iterator over in order to change the States within the TreeSet (more specifically, a private subclass within each state). However, I will most likely run into problems as I do something like this, or something to this effect:
for(State s : stateMap.values())
{
s.addArc();
}
I will probably get an exception because I'm working on a set being iterated over. How do I avoid this?