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;)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s