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
List<List<Account>> listoflistofAccount = new List<List<Account>>(); List<Contact> listOofAccount = new List<Contact>(); for(Integer i=0 ;i<listoflistofAccount.size();i++){ listOofAccount.addAll(listoflistofAccount.get(i)); }
Try this one
List<List<Acccount>> Accountlist = new List<List<Account>>();
integer listsize = Accountlist.size();
List<Acount> Accountlist2 = new List<Account>();
If(Accountlist!=null && Accountlist.size()>0)
{
for(integer i=0; i<listsize; i++)
{
Accountlist2.addAll(Accountlist.get(i));
}
}
Thank You,
Ajay Dubedi