当前位置: 首页 > 其他程序 > 所有文章
  • java使用stream判断两个list元素的属性并输出方式

    2022年06月08日

    使用stream判断两个list元素的属性并输出 /** * 使用stream判断两个list中元素不同的item */ @Test public void test1(){ List<Param> stringList1 = new LinkedList<Param>(){{ add(new Param(1,"1111")); add(new Param(2, "2222")); add(new Param(3, "3333")); }}; List<Param> string ...

    阅读全文