title: Why my Model class, data is incorrect?
body: <p>Why my Model class data is incorrect?</p>
  
  <p><img src="https://i.stack.imgur.com/PkUyy.png" alt="enter image description here"></p>
  
  <pre><code>List&lt;DataMasterList&gt; dataMasterLists = new ArrayList&lt;DataMasterList&gt;();
  
  private void addMaster() {
      for (int i = 0; i &lt; 6; i++) {
          DataMasterList dataMasterList = new DataMasterList();
          dataMasterList.setMaster_code("000" + i);
          dataMasterList.setProduct_name("name" + i);
          dataMasterList.setAmount(4 + i + "");
          dataMasterList.setUnit_price(10 + "");
          dataMasterLists.add(dataMasterList);
          Log.d("test1",dataMasterLists.get(i).getMaster_code()+" ");
      }
  
      Log.d("test2",dataMasterLists.get(0).getMaster_code()+" ");
  }
  </code></pre>
  
  <p>Content of Log.d:</p>
  
  <pre><code>test1: 0000
  test1: 0001
  test1: 0002
  test1: 0003
  test1: 0004
  test1: 0005
  
  test2: 0005
  </code></pre>
  
  <p>Why does <code>test2 = 0005</code> ?</p>
  
  <p>Why every value in <code>dataMasterLists</code> is <code>0005</code> ?</p>