Master the concepts of Salesforce in just 45 days Click here to know more.
8
10
58
27
Premium Salesforce Weekend Batch Start From Tomorrow.
Developers comfortable with Array notation can also use it while using Lists. Array and List syntax can be used interchangeably. Array notation is a notation where a list’s elements are referenced by enclosing the index number in square brackets after the list’s name.
String[] nameList = new String[4];
//or
String[] nameList2 = new List<String>();
List<String> nameList3 = new String[4];
// Set values for 0, 1, 2 indices
nameList[0] = ‘Bhavna’;
nameList[1] = ‘Bhavya’;
nameList[2] = ‘Swati’;
// Size of the list, which is always an integer value
Integer listSize = nameList.size();
// Accessing the 2nd element in the list, denoted by index 1
System.debug(nameList[1]); // ‘Bhavna’
Some common methods of list:
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill out the form and get consulted by our Salesforce experts.
Fill out the form to figure out to detemine the perfect Salesforce profile for yourself.
Fill the form below to get a demo of this course.
Fill out the form to get your Premium Salesforce Development Course
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.