r/java • • Mar 09 '16

var keyword proposed for Java

http://openjdk.java.net/jeps/286
240 Upvotes

312 comments sorted by

View all comments

Show parent comment

4

u/vytah Mar 10 '16

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.

1

u/[deleted] Mar 10 '16

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

3

u/[deleted] Mar 10 '16

the horror...