title: change a list while iterating or using a for each loop
body: <p>I am trying to iterate (or use a for each loop) on a Linked list class and be able to change the item (when found) to a passed in parameter.</p>
  
  <pre><code>for(Item n : items) 
  {
      if (n.getKey().equals(key))
      {
           n = new Item(key, value);
      }
  }
  </code></pre>
  
  <p>Does this change of data work or is it temporary (only to be lost when the activation record is deleted)?</p>