You need to sign in to do that
Don't have an account?
Andrew Gray
Nested List help
Am struggling with nested lists. I want to create one list (list2) with all the string values from the nested lists in list1. How do I assign in the loop ?
Thanks
public static void ctask1(List<List<String>> list1){ List<String> list2 = new List<String>(); for(List<String> l: list1) { //? } }
Thanks
For getting values for nested loop , we need to use nested for loop.
Hope it helps. if so kindly mark it as best answer.
Thanks,
karthik