List nameList = studentList.stream().map(StudentInfo::getName).collect(Collectors.toList());

List nameList = studentList.stream().map(StudentInfo::getName).collect(Collectors.toList());

你可能感兴趣的:(List nameList = studentList.stream().map(StudentInfo::getName).collect(Collectors.toList());)