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

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

代码示例1
Stream testStream = Stream.of('a', 'b', 'c');

String result = testStream.collect(Collector.of(
    StringBuilder::new,
    StringBuilder::append,
    StringBuilder::append,
    StringBuilder::toString));