I have two List2. I stores items in one list and in 2nd list I am storing int numbers which I consider as indexes.
I want remove items from items list with all indexes.
ArrayList<String> items = new ArrayList<String>();
ArrayList<Integer> indexes = new ArrayList<Integer>();
items.add("a");
items.add("b"); // should be removed
items.add("c");
items.add("d"); // should be removed
items.add("e");
items.add("f"); // should be removed
items.add("g");
items.add("h");
indexes.add(1);
indexes.add(3);
indexes.add(5);
Output : items : [a,c,e,g,h]