Writing forEach with java 8 lambda

Let’s take a simple example. It’s easier, probably, and can not be – create a list of numbers and display it on the screen through the simplest cycle:

Continue reading “Writing forEach with java 8 lambda”