I have a Simple Question.Why is this List showing the last item in the List
Any Answer Appreciated...
List<HashMap<String, Object>> noteItem=new ArrayList<HashMap<String,Object>>();
HashMap<String,Object> hashmapNoteItem = new HashMap<String, Object>();
hashmapNoteItem.put("todo_check", false);
hashmapNoteItem.put("todo_content", "added 0");
noteItem.add(hashmapNoteItem);
HashMap<String,Object> hashmapNoteItem1 = new HashMap<String, Object>();
hashmapNoteItem.put("todo_check", true);
hashmapNoteItem.put("todo_content", "added 1");
noteItem.add(hashmapNoteItem1);