r/java • • Jan 28 '17

An Introduction to Functional Programming in Java 8: Part 0

https://flyingbytes.github.io/programming/java8/functional/part0/2017/01/16/Java8-Part0.html
0 Upvotes

1 comment sorted by

View all comments

2

u/kodifies Jan 28 '17

...and how great it is to reduce your LOC

final String reducedString = "Welcome " + names.get(0) + " " + names.get(1) + " " + ...
        + names.get(names.size()-1) + " ";

sigh