title: Why my LinkedList is filled with the same object?
body: <p>I've been trying to fill in a <code>LinkedList</code>. I've written the following code:</p>
  
  <pre><code>List&lt;Item&gt; lst = new LinkedList&lt;Item&gt;();
  Item item = new Item();
  for(ListItem it : getAllItems()){
      item.setDate(it.getDate);
      //Setting up it's property to item
      lst.add(item);
  }
  </code></pre>
  
  <p>But after the code above is executed we have <code>lst</code> contains a <code>List</code> of the same element, which has been added at the last executing of foreach body. I'm expected that we have a <code>List</code> of elements which has been set up at any executing of the <code>foreach</code> body.</p>