Solving some tasks with Java 8: Stream API
Here I presented the possible solutions to the tasks: fast and their slow analogs in terms of memory consumption
Using: filter, findFirst, findAny, skip, limit, count
Using: distinct
Using: anyMatch, allMatch, noneMatch
Using: map, mapToInt, flatMap, flatMapToInt
Using: sorted
Using: max, min
Using: forEach, peek
Using: reduce
Using: toArray, collect
How to iterate map
Get a stream from a piece of array
Find all points in the given line
Convert multidimensional array to one-dimensional array
Fibonacci solutions
Multiply all elements by 2