The Creating streams from different sources, Reducing the elements of a stream and Sorting the elements of a stream recipes in Chapter 6, Parallel and reactive streams