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());
    }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
猜你喜欢
  • 2022-03-06
  • 2021-06-16
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案