public static <T>void removeAll(List<T> list,List<Integer> indexes){
  if (list == null || indexes == null) {
    return;
  }
  Collections.sort(indexes,Collections.reverseOrder());
  final int size=list.size();
  for (  Integer index : indexes) {
    if (index >= 0 && index < size) {
      list.remove((int)index);
    }
  }
}

public static < T > void removeAll ( List < T > list , List < Integer > indexes ) { if ( list == null || indexes == null ) { return ; } Collections . sort ( indexes , Collections . reverseOrder ( ) ) ; final int size = list . size ( ) ; for ( Integer index : indexes ) { if ( index >= 0 && index < size ) { list . remove ( ( int ) index ) ; } } }
removes from the given list the elements at the given indexes . ignores indexes which are out of bounds of list .
