📅  最后修改于: 2022-03-11 14:52:48.782000             🧑  作者: Mango
Stream testStream = Stream.of('a', 'b', 'c');
String result = testStream.collect(Collector.of(
StringBuilder::new,
StringBuilder::append,
StringBuilder::append,
StringBuilder::toString));