What is the difference between a stream and a collection?
A collection stores data in a structure like a list or set, while a stream is a method to process that data.
Exactly! Streams are used for processing data, while collections hold the data.
Can you give an example of using the `filter()` method in a stream?