Q:

remove arraylist index in for loop

for (int i = data.size()-1; i >= 0; i--){
    if (data.get(i).contains(element)){
            data.remove(i);
    }
 }
0

New to Communities?

Join the community