### Question:
CollectorsDemo { public void filter(List<Student> students, List<Integer> nums){ List<Student> whuStudents = students.stream() .filter(student -> "武汉大学".equals(student.getSchool())) .collect(Collectors.toList()); System.out.println("filter武汉大学:" + whuStudents); List<Integer> evens = nums.stream() .filter(num -> num % 2 == 0).distinct() .collect(Collectors.toList()); System.out.println("DISTINCT唯一值 :" + evens); List<Student> civilStudents = students.stream() .filter(student -> "土木工程".equals(student.getMajor())).limit(2) .collect(Collectors.toList()); System.out.println("limit 2: " + civilStudents); List<Student> civilStudentSkips = students.stream() .filter(student -> "土木工程".equals(student.getMajor())) .skip(2) .collect(Collectors.toList()); System.out.println("skip 2: " + civilStudentSkips); }  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 filter(){ collectorsDemo.filter(studentList, nums); }