java中用stream进行取值
摘要:
举个例子Student类中有name属性: List<Student> students = new ArrayList<Student>(); List<String> names =students.stream().map(Student::getName).collect(Collector 阅读全文
posted @ 2021-10-20 16:26 怪兽啊 阅读(733) 评论(0) 推荐(0) 编辑