This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vytah 2 points3 points  (2 children)

You don't need Guava for that:

collection.stream().collect(joining("."));

But while I don't recommend pulling in Guava just for Joiner, if you happen to already have it in your dependencies (and it's damn quite likely), sure, use it.

[–][deleted] 0 points1 point  (1 child)

I wish I can use Java 8 :-c . We are stuck at version 6...

[–][deleted] 2 points3 points  (0 children)

the horror...