What is the primary use of the collect method in streams?
collect
To map values
To perform intermediate operations
To finalize a stream and return a collection
To filter elements