You need to sign in to do that
Don't have an account?
Prady01
How to work with a nested List
Hello All, I was just wondering if I could get a sample code of using nested list i.e. example
List<List<Set<Integer>>> my_list_2 = new List<List<Set<Integer>>>();
Just wondering what will be usage of the nested lists (Any pros and cons) and how to add entities to nested list and get it back.
Thanks
Prady
List<List<Set<Integer>>> my_list_2 = new List<List<Set<Integer>>>();
Just wondering what will be usage of the nested lists (Any pros and cons) and how to add entities to nested list and get it back.
Thanks
Prady
I often use Maps containing lists - typically the key will be the id of a parent record and the list will be related records. An example of this would be storing the contacts related to an account, with the map keyed by the account id.
All Answers
I often use Maps containing lists - typically the key will be the id of a parent record and the list will be related records. An example of this would be storing the contacts related to an account, with the map keyed by the account id.
https://developer.salesforce.com/forums/ForumsMain?id=906F000000091MlIAI