for loop to add 50 numbers in list in apex code example Example: apex loop list for (variable : list_or_set) { code_block }