Here you can find the source of removeElementByPosition(List
public static void removeElementByPosition(List<String> targetList, List<Integer> positionDel)
//package com.java2s; import java.util.List; public class Main { public static void removeElementByPosition(List<String> targetList, List<Integer> positionDel) { for (int i = 0; i < positionDel.size(); i++) { targetList.remove(positionDel.get(i).intValue()); }/*w w w .j a v a 2s . c o m*/ } }