I want to remove the full row which is duplicating. I have used Hashmap to remove the duplicates in an arraylist but it is still duplicating. Please help me. Thank You in advance.
ArrayList<Act2010> act2010DataList = AtusAct2010Parser.hm;
ArrayList<Who2010> whoList = AtusWho2010Parser.hm;
HashMap<String, AtusRecords> hm = new HashMap<String, AtusRecords>();
for(int i=0; i<whoList.size(); i++){
hm.put(whoList.get(i).getStringId(), whoList.get(i));
}
for(int i=0; i<act2010DataList.size(); i++){
hm.put(act2010DataList.get(i).getStringId(), act2010DataList.get(i));
}
Iterator<String> it = hm.keySet().iterator();
while(it.hasNext()){
String key = it.next();
AtusRecords record = hm.get(key);}