Regarding parallel stream in java 8 | Core Java Forum
D
Deepak Kumar Tiwari Posted on 21/03/2021

Hi Sir, I am having values in list .Rather then iterating them in loop I want to use parallel stream and put assert on each output. Can you please help me here.


D
Deepak Kumar Tiwari Replied on 24/03/2021

Thank you sir. I got it.

Actually I was getting data in list of hash map and got confused.

List.parallelStream().forEach(map -> map.entrySet().parallelStream().forEach(column ->

{

}));

I managed it.

 


Y
Yogesh Chawla Replied on 15/07/2021

Ok.