List questionIds = questionRelas.getList().stream().map(QuestionStudentRela::getQuestionId).collect(Collectors.toList()); 百度的: 1 List students =newArrayList(); 往list里插入對象后 1 List names =students.stream().map(Student::getName).collect(Collectors.toList()); ...