User Story
- Create a List with the elements red, blue, yellow.
- Add the elements green, orange and purple to the list.
- Debug the size of the list.
Expected Outcome
The size of the List is 6
Code
List<String> colors = new List<String> { 'red', 'blue', 'yellow' };
colors.add('green');
colors.add('orange');
colors.add('purple');
System.debug('The size of the List is '+colors.size());
Video
Video does not exists.