Use collection.stream() to create a stream from a collection. Do not substitute Stream.of(collection): Stream.of() is for a single element or an array, while collection.stream() operates on the collection's elements. section 8.2
The single-object versus collection mistake
When processing a collection, choose collection.stream() rather than Stream.of(list). The latter treats the list as the single input value, so it does not provide the intended stream of collection elements. section 8.2
