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
Public class NewRegistrationController{ Public static void data(){ map<String,Integer> mapName=new map<String,Integer>(); mapName.put('Delhi',110003); mapName.put('South Delhi',110004); mapName.put('West Delhi',110005); mapName.put('Old Delhi',110006); mapName.put('New Delhi',110007); for(String str:mapName.KeySet()){ System.debug('Pin code = '+mapName.get(str)); } System.debug('Pin code of Delhi is= '+mapName.get('Delhi')); } }
To execute this class : ctrl+E then put NewRegistrationController.data();
Click on execute
Please mark it as the Best Answer
Thank You
Hi,
Please find the solution.
map<String,Integer> mapName=new map<String,Integer>(); mapName.put('Delhi',110003); mapName.put('South Delhi',110004); mapName.put('West Delhi',110005); mapName.put('Old Delhi',110006); mapName.put('New Delhi',110007); for(String str:mapName.KeySet()){ System.debug('Pin code = '+mapName.get(str)); } or System.debug('Pin code of Delhi is= '+mapName.get('Delhi'));
Please mark it as the Best Answer if it helps you
To execute this class : ctrl+E then put NewRegistrationController.data();
Click on execute
Please mark it as the Best Answer
Thank You
All Answers
Hi,
Please find the solution.
Please mark it as the Best Answer if it helps you
Thank You
{
public Registration__c reg {get;set;}
}
To execute this class : ctrl+E then put NewRegistrationController.data();
Click on execute
Please mark it as the Best Answer
Thank You