title: How to iterate over a SortedSet to modify items within
body: <p>lets say I have an List. There is no problem to modify list's item in for loop:</p>
  
  <pre><code>for (int i = 0; i &lt; list.size(); i++) { list.get(i).setId(i); }
  </code></pre>
  
  <p>But I have a SortedSet instead of list. How can I do the same with it?
  Thank you</p>