HashMap hashMap=new HashMap();
boolean flag;
for(int i=0;i< correspondenceActivityBeans.length ;i++){
flag=false;
if(!hashMap.containsKey(new Integer(correspondenceActivityBeans[i].getClientID()))){
hashMap.put(new Integer(correspondenceActivityBeans[i].getClientID()),correspondenceActivityBeans[i]);
flag=true;
}
if(flag)
tempList.add(correspondenceActivityBeans[i]);
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment