for (Object a : list) { if (a.getXXX().equalsIgnoreCase("AAA")) { logger.info("this is AAA........should be removed from the list "); list.remove(a); } }