我有这样的事情,我想得到一个字符串作为结果
List<Profile> profile;
String result = profile
.stream()
.filter(pro -> pro.getLastName().equals("test"))
.flatMap(pro -> pro.getCategory())
getCategory() 应该返回一个字符串,但不确定我必须使用什么来返回一个字符串,我尝试了几件事,但任何工作
任何的想法?
BIG阳
拉风的咖菲猫
扬帆大鱼
相关分类