You need to sign in to do that
Don't have an account?
suneel.patchipulusu@gmail.com
Could any one explian thius small code
public static void handleDIOpportunities (List<Opportunity> opportunities) { for (Opportunity opp: opportunities) { computeState(opp); }
List<Opportunity> opportunities ia an argument for the handleDIOpportunities
What exactly for loop does??
All list opportunities assign to Opp
Here what is ComputeState????
Thanks in advance
The loop is just iterating all elements in the list - this is shorthand for a loop such as:
computeState looks like a method declared elsewhere in your class.
Here computeState is a method where all the opportunities are passing individually(iterating through that for loop) from "opportunities" variable to compute something.
Thanks