Achieve your business goals faster by unlocking our Salesforce Cloud Services.
Map<Integer, String> m = new Map<Integer, String>{5=>’Kalpana’};
m.put(1, ‘Bhavna’);
m.put(2, ‘Sapna’);
m.put(3, ‘Divya’);
m.put(4, ‘Bhavya’);
m.put(2, ‘Divya’); // this will override previous value
Map<Integer, List<Integer>> m = new Map<Integer, List<Integer>>();
m.put(1, new List());
Note: Maps are used frequently to store records that you want to process or as containers for lookup data. It is very common to query for records and store them in a map so that you can do something with them.
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill the form below to get a Result
Fill the form below to get a demo of this course.
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.