Notes
If you want to add all elements from another list to a specific index in the target list, you can use the addAll(index, listToAdd)
method.
Here's an example:
List<Integer> firstList = new List<Integer>{1, 2, 3};
List<Integer> secondList = new List<Integer>{4, 5, 6};
firstList.addAll(secondList);
System.debug('Updated List: ' + firstList);
Output: Updated List: (1, 2, 3, 4, 5, 6)
Video
Video does not exists.