The String.join javadoc contains some sample code to demonstrate how to use the method. The sample code can be improved with the new-in-JDK-9 List convenience factory method.
(A corresponding update should *not* be made to the String.join sample using a Set since the Set convenience factory methods do not guarantee ordering.)
(A corresponding update should *not* be made to the String.join sample using a Set since the Set convenience factory methods do not guarantee ordering.)
- relates to
-
JDK-8048330 JEP 269: Convenience Factory Methods for Collections
-
- Closed
-