Iterating through a TreeSet in java and updating it
<p>I have a <code>TreeSet</code> in Java and I have my own comparator function for this tree set. Now I am traversing this tree set using <code>descendingIterator()</code> method and changing the elements. So does this update the actual tree set as well wrt to the way it is sorted with my custom comparator? Or do I need to remove the element and put back the updated element?</p>
