Hi Shrey, In Graduation, I have completed BSc(PCM). And now I'm a CSS Developer with 3+ yrs experience. Can i switch to salesforce. Plz suggest me.. Plz plz...
not able to get the result in desired format for 2d . List l12 = new list (); List l13 = new List {1,2,3}; List l14 = new list {4,5,6}; List l15 = new list {7,8,9}; l12.add(l13); l12.add(l14); l12.add(l15); system.debug(l12); debug only - ((1,2,3),(4,5,6,),(7,8,9)) - can someone help?
instead of system.debug(l12) directly, you can try this instead to get the 2d format System.debug(l12[0]); System.debug(l12[1]); System.debug(l12[2]); hope you get it.
Here its is : The data type you defined is [ [[1,2,3],[2,3,5],[....]] ]but what you are trying to insert in it is [1,2,3] so it should be List of Integers into another List
Excellent video am searching nested list/set for this..
Could u upload one more video on nested list..
This vedio is very usefull, and tq u for the vedio
Could you please tell me how to display a single value..like a particular index value
Should every list in a nested list have same count of index values for it run? Or can it be in different count of values.
List l1 = new List{2,4,6};
List l2 = new List{3,6,9};
List l3 = new List{4,8,12};
List list1 = new List{l1,l2,l3};
can we do like this ??
yes we can do that
Hi! Can you make a video about nested maps? Thanks!
How can you access a particular element from a list ?
Hi Shrey,
In Graduation, I have completed BSc(PCM). And now I'm a CSS Developer with 3+ yrs experience. Can i switch to salesforce. Plz suggest me..
Plz plz...
surely... start learning from trailhead and utube and get certified
Yes
not able to get the result in desired format for 2d . List l12 = new list ();
List l13 = new List {1,2,3};
List l14 = new list {4,5,6};
List l15 = new list {7,8,9};
l12.add(l13);
l12.add(l14);
l12.add(l15);
system.debug(l12);
debug only - ((1,2,3),(4,5,6,),(7,8,9)) - can someone help?
instead of system.debug(l12) directly, you can try this instead to get the 2d format
System.debug(l12[0]);
System.debug(l12[1]);
System.debug(l12[2]);
hope you get it.
I keep getting this error: Initial expression is of incorrect type, expected: List but was: List Can anyone help?
Here its is :
The data type you defined is [ [[1,2,3],[2,3,5],[....]] ]but what you are trying to insert in it is [1,2,3] so it should be List of Integers into another List
Can you please provide notes?