Which stream operation transforms each element?
Answer & explanation
Answer: map
`map` transforms elements; `filter` keeps matching elements; `forEach` performs an action.
Practice streams with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: map
`map` transforms elements; `filter` keeps matching elements; `forEach` performs an action.