日期:2014-05-18 浏览次数:20818 次
ArrayList<String> mContactsName = new ArrayList<String>();
List<RecoverContactsInfo> list;
private List<RecoverContactsInfo> addlist = new ArrayList<RecoverContactsInfo>();
...........
for (int i = 0; i < mContactsName.size(); i++) {
for (RecoverContactsInfo rc : list) {
String name=mContactsName.get(i).trim();
String num = mContactsNumber.get(i).replace("-","").replace(" ", "");
//当名字与号码都不一样
if(!name.equals(rc.getName().trim()) && !num.equals(rc.getNumber())){
addlist.add(rc);
}
}
}