function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
map<String,String> maps = new map<String,String>(); maps.put('A','a'); maps.put('B','b'); maps.put('C','c'); for(String key : Maps.keySet()){ if(Maps.get(key) == 'b'){ system.debug(key); } }
Try Below Code Please Mark It As Best Answer If It Helps
Thank You!
Please follow the below link:-
map<Integer,String> testMap = new map<Integer,String>();
testMap.put(1,'red');
testMap.put(2,'orange');
testMap.put(3,'Blue');
for(String key : testMap.keySet()){
if(testMap.get(key) == 'orange'){
system.debug('true-- '+key);
}
}
Please mark it as Best Answer if it helps you.
Thanks & Regards
Suraj Tripathi