Here is my code:
for (int i = 0; i < myarraylist.size(); i++) {
for (int j = 0; j < stopwords.size(); j++) {
if (stopwords.get(j).e
Ok this is very good problem to solve. Lets start with an exmaple
We have data = [5,2,7,3,9,34,63,23,85,23,94,7]
indexes to remove
int index[] = [5,2,7,9]
Note : As you remove single item from array other elements get shifted by 1.
If we use ArrayList to remove elements of indexes then first you need to sort the indexes in descending.
i.e indexes = [9,7,5,2] then remove the element from index
ArrayList data = Arrays.asList(new Integer[] {5,2,7,3,9,34,63,23,85,23,94,7});
for(int i=0;i