In addition to using the Iterator directly (which I would recommend) you can also store elements that you want to remove in a different list.
List toRemove = new ArrayList();
for (String fruit : list) {
if ("banane".equals(fruit))
toRemove.add(fruit);
System.out.println(fruit);
}
for (String fruit : toRemove) {
list.remove(fruit);
}
Mind you, I do not recommend this, it’s just an alternative. :)