posted 1 year ago
Hi ,
I'm sure this is covered in your book but was wondering what you consider the biggest advantage of using the streams API over the collections API for handling data ?
A sample use case:
You want to iterate through a list of email addresses . If the the email is in a second list , you send an email then handle a bounced email or do further processing after the mail is sent if not bounced.
For me, it would make more sense to use an iterator for that.
thanks,
Paul