Android List Remove removeElementByPosition(List targetList, List positionDel)

Here you can find the source of removeElementByPosition(List targetList, List positionDel)

Description

remove Element By Position

Declaration

public static void removeElementByPosition(List<String> targetList,
            List<Integer> positionDel) 

Method Source Code

//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*/

    }
}