for(Iterator<Work_Log> it=iterator.iterator();it.hasNext();) { Work_Log next = it.next(); boolean flag= DateUtil.getSunday().getTime() >= sdf.parse(next.getPlanDate()).getTime() && sdf.parse(next.getPlanDate()).getTime()>=DateUtil.getMonday().getTime(); // boolean flas = "".equals(next.getWorkPlan()); if ("本週總結".equals(next.getWeek()) && !flag){ it.remove(); }; }