delete arraylist in a forloop code example
Example: remove arraylist index in for loop
for (int i = data.size()-1; i >= 0; i--){
if (data.get(i).contains(element)){
data.remove(i);
}
}
for (int i = data.size()-1; i >= 0; i--){
if (data.get(i).contains(element)){
data.remove(i);
}
}