I am learning the use of stream API on
Java collections by following this blog:
http://java.amitph.com/2012/10/java-collections-api-enhancements.html
I've stumbled upon this piece of code that I can't seem to get to work,
I am trying to reproduce the behavior with the following code,
But, IntellijIDEA says that it can not resolve method 'into'. I looked into Sream class, and I could not find a method named 'into'.
So, how do I make the code work? The blog is from 2012 - did the API change?