Posts

Showing posts with the label collections

How to compare Two hash maps

Image
Clash Royale CLAN TAG #URR8PPP How to compare Two hash maps let's take an example : Syntax : Map<String,Map<String,String>> A = new HashMap<>(); Map<String,Map<String,String>> B = new HashMap<>(); Implementation : Map<TableA,Map<AID,AVAL>> A = new HashMap<>(); Map<TableB,Map<BID,BVAL>> B = new HashMap<>(); Comare A hash map and B in that compare TableA, TableB AND Aid, Bid. What is the best performance way to iteate these two hash map? Possible duplicate of How to compare two Hash Maps in Java – Abhinav Suman 2 mins ago By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your con...