boolean found = false;
for (ExperimentBean localBean : localExperimentList) {
for (ExperimentBean queryBean : experimentList) {
if (queryBean.getId().equals(localBean.getId())) {
found = true;
//also do something
// LogUtil.d("包含:" + localBean.getExperimentName());
}
}
if (!found) {//do something
LogUtil.d("不包含:" + localBean.getExperimentName());
}
found = false;
}
06-13
1805
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)