I\'m finding conflicting advice over the best way to avoid a ConcurrentModificationException while doing this:
ConcurrentModificationException
List Apples = appleC
Since Java 8 you can now do this: apples.removeIf(apple -> apple.equals(this))
apples.removeIf(apple -> apple.equals(this))