java stream join string code example
Example 1: String joiner in streams java
setOfTags.stream().collect(Collectors.joining(";"))
Example 2: java stream collect to string
List<Integer> numbers = Arrays.asList( 4, 8, 15, 16, 23, 42 );
return numbers.stream()
.map( n -> n.toString() )
.collect( Collectors.joining( "," ) );