List dealResultList = new ArrayList();
dealResultList.add(“是”);
dealResultList.add(“是”);
dealResultList.add(“否”);
boolean trueOrFalse= dealResultList.stream().allMatch(element -> element.equals(‘是’));
则会返回false
List dealResultList = new ArrayList();
dealResultList.add(“是”);
dealResultList.add(“是”);
dealResultList.add(“否”);
boolean trueOrFalse= dealResultList.stream().allMatch(element -> element.equals(‘是’));
则会返回false