Apex provides a switch statement that tests whether an expression matches one of several values and branches accordingly.
Resource:
Switch Statements - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_switch.htm
In this lesson, we look at traditional For loops as well as a list or set iteration for loop, which iterates over all the elements in a list or set.
Resources:
Traditional For Loops
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_loops_for_traditional.htm
L...
In this lesson, we cover While loops.
The Apex while loop repeatedly executes a block of code as long as a particular Boolean condition remains true.
The Apex do-while loop repeatedly executes a block of code as long as a particular Boolean condition remains true.
Resources:
While Loops - ht...
In this lesson we look at an exception handling example.
Resource:
Exception Handling Example - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_exception_trycatch_example.htm