Stream List> 转 List
List collect = strLL.stream().flatMap(strs -> strs.stream()).collect(Collectors.toList());

List collect = strLL.stream().flatMap(Collection::stream).collect(Collectors.toList());

 

你可能感兴趣的:(框架,编程语言,java)