Iterating through Map in Salesforce
string tempname='';
string tempdesc='';
Map<String,String> mapObj = new Map<String,String>();
For(String tempVarialbe: mapObj.ketset())
{
tempname= tempVarialbe; [To get the KEY VALUE]
tempdesc= mapObj.get(tempVarialbe); [Using Key value to get the corresponding VALUE]
}
string tempname='';
string tempdesc='';
Map<String,String> mapObj = new Map<String,String>();
For(String tempVarialbe: mapObj.ketset())
{
tempname= tempVarialbe; [To get the KEY VALUE]
tempdesc= mapObj.get(tempVarialbe); [Using Key value to get the corresponding VALUE]
}
your explaination is good but you have to explain deeply
ReplyDelete