below I have two independent map coming which i have stored in individual maps , I want to add them into the third final map, so the final map will contain the sum of maps named m1 and m2 , please advise how to achieve the same
map1=(Map<String, List<NTM>>) m1.exceute(jobCode, clientlogo);
map2=(Map<String, List<NTM>>) m1.exceute(jobCode, clientlogo);
private Map<String, List<NTM>> finalMap;
public Map<String, List<NTM>> invoke (String jobCode, String clientlogo)
{
maestroCardBusinessCNFRuleImpl m1 = new maestroCardBusinessCNFRuleImpl();
maestroCardBusinessANFRuleImpl m2 = new maestroCardBusinessANFRuleImpl();
try {
map1=(Map<String, List<NTM>>) m1.exceute(jobCode, clientlogo);
map2=(Map<String, List<NTM>>) m1.exceute(jobCode, clientlogo);
// *** logic to add the sum of both the maps ****
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}