Undoubtedly, the most important innovations introduced in Java 8 are lambda expressions and the stream API. A stream is a sequence of elements that can be processed in a sequential or parallel way. We can transform the stream applying the intermediate operations and then perform a final computation to get the desired result (a list, an array, a number, and so on). In this chapter, we will cover the following topics:
- An introduction to streams
- The first example - a numerical summarization application
- The second example - an information retrieval search tool