title: Android Listview displays last element in the ArrayList
body: <p>Hi my code only shows the last element of the ArrayList!
  Heres my code:</p>
  
  <pre><code>    ListView list = (ListView) findViewById(R.id.t1player_statsList);
  
      ArrayList&lt;HashMap&lt;String, String&gt;&gt; mylist = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
      HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
  
      for(Player player : team1.getPlayers())
          map.put("player", player.getName()); 
          map.put("score", "0");
          mylist.add(map);
  
  
      SimpleAdapter mSchedule = new SimpleAdapter(this, mylist, R.layout.mylistrow,
                  new String[] {"player", "score"}, new int[] {R.id.NameCell, R.id.ScoreCell});
      list.setAdapter(mSchedule);
  </code></pre>
  
  <p>i feel that its something to do with my for loop. can someone please help!! thanks in advance!</p>