Any stream operations can be intermediate or terminal. The first is always lazy and return a new stream, the second is not lazy and return a value or produce a side-effect.
Distribute stream operations on these groups.
Functional data processing with streams
Common stream operations
Report a typo
Choose one option for each row
| Intermediate | Terminal | |
|---|---|---|
| map | ||
| max | ||
| skip | ||
| filter | ||
| reduce | ||
| limit | ||
| sorted | ||
| collect | ||
| average (LongStream) | ||
| distinct | ||
| anyMatch | ||
| count |
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.