posted 6 years ago
Hi,
I want to sum the elements and map it to object. Is it possible?
Like, I have a list of objects which contains some number and I have to add them and final sum I have to return.
I want it trough Java8 grouping feature.
E.g.
Is it possible?
Thanks,
Atul