Android list1去除list2中的元素

public static void main(String[] args) {
        List<String> firList = new ArrayList<String>();
        firList.add("1");
        List<String> twoList = new ArrayList<String>();
        twoList.add("2");
        twoList.add("3");
        firList.removeAll(twoList);
        System.out.println(firList.toString());
    }

 

posted @ 2016-07-29 08:39  星辰之力  阅读(1562)  评论(0编辑  收藏  举报