posted 7 years ago
Hi,
I have the below code as per the traditional way to iterate and set the object value in hashmap as follows.
Same i want to use with Streams/Lamdas. Below is what I tried which is incomplete. Can someone help in that.
But its adding same object multiple times. Where i as doing wrong. I don't want to initialize the obj inside stream.