I have an ArrayList<String> A that contains n elements, and an ArrayList<Integer> B that contains the indexes from A that I need to delete. How can I delete these indexes? After I remove an index like this : A.remove(index), then the size of A is smaller and the others indexes are not on the same position anymore.
Any idea is welcome.