jaca for loop to remove index from arraylist 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);
}
}