Skip to content

Instantly share code, notes, and snippets.

@melissajhansen
melissajhansen / CollectionsReview.cls
Last active February 13, 2020 04:50
CollectionsReview
public with sharing class CollectionsReview {
public static void introToLists() {
//Let's declare and initalize a list of strings
List<String> listOfStrings = new List<String>();
//Ok, we have a list declared, but we haven't yet put anything in it. let's put some stuff in those lists
listOfStrings.add('EntryA');
listOfStrings.add('EntryB');