📜  java 流收集到字符串 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:29.391000             🧑  作者: Mango

代码示例1
List numbers = Arrays.asList( 4, 8, 15, 16, 23, 42 );
return numbers.stream()
        .map( n -> n.toString() )
        .collect( Collectors.joining( "," ) );