Hello Trailblazers, In this video we're going to learn how we can create and use list in apex. List can be simply defined as a collection of similar data type elements.
Chapters:
0:00 Introduction - What is a list in Apex?
1:47 Create an empty list and a list of Integers
3:47 Create a list of String in apex
4:37 Add elements at the end of the list
5:48 Access elements from the list
8:45 Add element at a particular index inside the list
10:12 Remove element from the list
11:19 Clear all elements inside the list using clear()
11:59 Check if the list is empty using isEmpty()
12:42 Get the size of the list using size()
13:23 Check if an element is present inside the list using contains()
14:21 Sort the list in ascending order using sort()
16:17 Wrapping up and resources
Blog: https://www.sfdcstop.com/2021/09/list...
Code: https://gist.github.com/rahulmalhotra...
Subscribe to SFDC Stop:- https://www.youtube.com/c/sfdcstop?su...
LWC Todo App Project Tutorial Series - • Simplifying the Callouts in Salesforc...
Interested in learning about Scratch Orgs and SFDX ? Have a look at the playlist:- • Getting started with Scratch Orgs and...
Interested in learning about Integration ? Have a look at this playlist:- • Salesforce Integration Tutorial Series