I'm attempting to iterate over a list and when a chosen value is found remove it but I can only remove 1 value (the first one found). Why is this and how can it be solved.
Here's the code I use
for (int i = 0; i<list.size(); i++) {
if(list.get(i).equalsIgnoreCase("word")) {
list.delete(i);
}
}
But for some reason it only seems to delete the first item found then doesn't do anything. WHY?!