Ultimately Java 8 shipped with StringJoiner class under java.util package. I don’t think it is very different implementation to join the strings compared to our old school approach by using StringBuffer/StringBuilder. We will see the usage of the StringJoiner and the internal implementation of it.

Continue to read