Iterate 2 maps and adding value to each
Hello, I have 2 maps, One have Park object as key and an empty TreeList of Ride object as value ( parkMap ). The second one have Ride object as key and an empty Treelist of Park as value (rideMap).
Now for a given Park name and Ride name, I must iterate trough each map ( parkMap for Park and rideMap for Ride ) and if they both exist in their respective map, I must add the Ride to the empty TreeSet of the Park key and the Park to the empty TreeSet of the Ride key.
I am stuck! Any suggestions??