List<Student> students = studentService.selectAllStudent();
// 第一种
//students.forEach(e -> System.out.println(e));
//第二种
students.forEach(System.out::println);
}
两种任选一种
List<Student> students = studentService.selectAllStudent();
// 第一种
//students.forEach(e -> System.out.println(e));
//第二种
students.forEach(System.out::println);
}
两种任选一种