I'm no mathematician, but I'm pretty sure 5 + 5 equals 10. So option E looks like the way to go! Though I do wonder if that's too obvious. Hmm, maybe I should have paid more attention in algebra class...
Anyone else see the pun in 'reduce' and 'sum'? It's like they're trying to reduce us to a sum! *laughs* Anyway, I'm going with C. That extra +5 at the end just feels a bit too sneaky for my liking.
This is a tough one! I'm leaning towards D, since the parallelStream() might be more efficient for a large list. But the orElse(5) part makes me a bit nervous. Gotta love those functional programming tricks!
Option B looks the most straightforward to me. The stream() method with reduce() and lambda expressions seems like the clearest way to get the sum of the list.
Blondell
1 months agoRoxane
2 days agoLenna
1 months agoLettie
3 days agoLettie
4 days agoLettie
14 days agoBuck
1 months agoSabra
1 months agoMayra
11 days agoAlonzo
22 days agoIlda
23 days agoJesse
2 months agoMargart
2 months agoMalcolm
2 months agoMargart
3 months ago