Answers for "java char stream to string"

0

java char stream to string

Stream<Character> testStream = Stream.of('a', 'b', 'c');

String result = testStream.collect(Collector.of(
    StringBuilder::new,
    StringBuilder::append,
    StringBuilder::append,
    StringBuilder::toString));
Posted by: Guest on May-18-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language