### Question:
CollectorsDemo { public void match(List<Student> students){ boolean isAdult = students.stream().allMatch(student -> student.getAge() >= 18); System.out.println("allMatch： isAdult " + isAdult); boolean hasWhu = students.stream().anyMatch(student -> "武汉大学".equals(student.getSchool())); System.out.println("anyMatch： hasWhu " + hasWhu); boolean noneCs = students.stream().noneMatch(student -> "计算机科学".equals(student.getMajor())); System.out.println("noneMatch： noneCs " + noneCs); Optional<Student> optStu = students.stream().filter(student -> "土木工程".equals(student.getMajor())).findFirst(); System.out.println("findFirst: " + optStu); Optional<Student> optStu2 = students.stream().filter(student -> "土木工程".equals(student.getMajor())).findAny(); System.out.println("findAny: " + optStu2); }  void filter(List<Student> students, List<Integer> nums); void map(List<Student> students); void match(List<Student> students); void reduce(List<Student> students); void collect_reduce(List<Student> students); void collect_group(List<Student> students); void collect_partitioning(List<Student> students);  }### Answer:
@Test public void match(){ collectorsDemo.match(studentList); }