I have created an ArrayList called entryList. The method I am trying to create is that if you write removeAllByDate() and enter a date, the entire line with that date should be removed. The 
entryList in turn consists of entries (rows) and I have also created the method getDate(). I thought of writing something like this:
public void removeAllByDate(String datum) {
    for(Entry entry: entryList) {
        if (entry.getDate().contains(datum)) {
            entryList.remove(entry);
        }
    }
}
Does anyone see why this does not work?
 
     
    