String Joiner – Java 8

As StringJoiner class introduced on Java8, it really draw my attention as what kind of new feature can they add on. Because as my point of view the current like: string builder is been sufficient enough for string manipulation.

After a bit of research, it’s turn out StringJoiner is no something new, the code underneath is base on StringBuilder. But still it’s worth of check it out because it really provide a handy way of organise a structured string in a easy way.

Following code are some sample I did for try out the StringJoiner class, Enjoy;)

https://github.com/andykhk/All-About-Java/tree/master/String_Joiner/src/String_Joiner

Leave a comment