Collectors
Reading
Important Concepts
- The distinction between three similar-sounding things:
-
Collection
(interface for a family of data structures, includes List) -
Collector
(interface for operations that turn streams into collections) -
collect()
(method of Stream)
-
- transforming vs. reducing
Things to Consider
- What are two differences between collections and streams?
- What is the role of a terminal operation in a stream?
Your Response
What was particularly interesting, confusing, or exciting to you in this reading?