Answers for "how to loop and remove from an array list"

1

remove arraylist index in for loop

for (int i = data.size()-1; i >= 0; i--){
    if (data.get(i).contains(element)){
            data.remove(i);
    }
 }
Posted by: Guest on May-19-2020

Code answers related to "how to loop and remove from an array list"

Browse Popular Code Answers by Language