What is the difference between `collect()` and `forEach()` in streams?
`collect()` converts a stream into a collection, while `forEach()` is used to filter data in the stream.
Thatâ€™s incorrect. `collect()` converts a stream into a collection, but `forEach()` does not filter; it is used for iterating over elements.
Can you explain how you would use `forEach()` to print each element of a stream?