a usage sample in StringJoiner b73 spec needs update

Dmitry Bessonov dmitry.bessonov at oracle.com
Wed Jan 16 06:26:03 PST 2013


Currently an example in the spec for StringJoiner class:
http://jre.us.oracle.com/java/re/lambda/8/promoted/ea/b73/docs/api/java/util/StringJoiner.html
still contains usage of Stream.into() method.

       List people = ...
       String commaSeparatedNames =
           people.map( p -> p.getName() )
               .into( new StringJoiner(", ") )
               .toString();


-Dmitry



More information about the lambda-dev mailing list