Question: How to convert List to Map in Java? I have a list of Map of string objects like this [{a=2,b=3,c=4},{a=4,b=6,c=8}] I want to convert this

How to convert List> to Map in Java?

I have a list of Map of string objects like this

[{a=2,b=3,c=4},{a=4,b=6,c=8}]

I want to convert this to a format like this

{a[0]=2,b[0]=3,c[0]=4,a[1]=4,b[1]=6,c[1]=8} etc.

How to convert this to this format please help.

Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!