StringJoiner in b88

Paul Sandoz paul.sandoz at oracle.com
Mon May 6 01:28:42 PDT 2013


On May 6, 2013, at 9:19 AM, Joe Bowbeer <joe.bowbeer at gmail.com> wrote:
> In b88, StringJoiner does not implement a stream destination?
> 
> Is the "into" example in the javadoc no longer valid?
> 

Right, it's an error.


> http://download.java.net/lambda/b88/docs/api/java/util/StringJoiner.html
> 

It should be something like:

String commaSeparatedNames =
            people.stream().map(p -> p.getName()).collect(Collectors.toStringJoiner(", ")).toString();

I quickly updated the docs to:

  http://hg.openjdk.java.net/lambda/lambda/jdk/rev/3a44a6038054

Paul.



More information about the lambda-libs-spec-observers mailing list