I have 2 hashmap which contains a Key and a Value for both. My objective is to find out the duplicates in one of the hashmap and if a duplicate is detected , i will extract the KEY. May i know how can i do that in a hashmap?
basically the first hashmap stores the station ID and the 2nd hashmap stores the station name at some point there will be interception for changing train too. How do i code it in a way that if the user enters a boarding station on train line 1 and alighting station on train line 2, it would then return telling you that you ahve to make a change in train to get to the location which is location on the other train line.
Sorry about the explanation it, its kinda confusing.
Would be nice if you could help out! Thank you!