Java: Streams in Java 8
A whole new style of programming
Java 8 introduced many new feature that support a more functional programming style.
These features allow Java programmers to write code that looks more like code in Ruby, Scheme, LISP, and certain other languages.
Check out these links:
- http://www.adam-bien.com/roller/abien/entry/java_8_from_ordinary_for
- http://www.deadcoderising.com/2015-05-19-java-8-replace-traditional-for-loops-with-intstreams/
- http://www.java2s.com/Tutorials/Java/Java_Stream/index.htm
- http://www.leveluplunch.com/java/examples/java-util-stream-intstream-example/
Contrary Opinions
Not everyone is fully on the bandwagon with the new functional programming style. And that’s probably a good thing. We want to make sure to avoid treating every problem as a nail just because we have a shiny new hammer.
Read these too, and form your own opinions—but don’t hold onto those opinions too tightly. Take everything you read seriously, but not literally.