User Story
Merge the following two list in a single list
List<Integer> listA = new List<Integer>{2,4,7,5};
List<Integer> listB = new List<Integer>{12,15,11,20};
Expected Outcome
DEBUG|(2, 4, 7, 5, 12, 15, 11, 20)
Code
List<Integer> listA = new List<Integer>{2,4,7,5};
List<Integer> listB = new List<Integer>{12,15,11,20};
List<Integer> listC = new List<Integer>(listA);
listC.addAll(listB);
System.debug(listC);
Video
Video does not exists.