Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to find a map from two list of maps using a key present in the map ? I have 2 list of maps and

How to find a map from two list of maps using a key present in the map ?

I have 2 list of maps and a key, Both of this list of maps have same key present.

for example

list1 = [{id=123,segmentid=2,journeyid=23,originLocationKey=25},{id=124,segmentid=1,journeyid=24,originLocationKey=26},{id=125,segmentid=3,journeyid=25,originLocationKey=27}]

list2 = [{row=1,segmentid=2,journeyid=23,field=originLocationKey},{row=2,segmentid=1,journeyid=24,field=originLocationKey}]

the key use is segmentid, I want to get the output a map {id=125,segmentid=3,journeyid=25,originLocationKey=27} the segmentid=3 is not present in the list2.

please help

Thanks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions