如,获取每个人的姓名(实则是将Human 类型转换成String类型):. List result = list.stream().map(Human::getName).collect(toList()); ...
確定! 回上一頁