Skip to content

Instantly share code, notes, and snippets.

View katelessardrad's full-sized avatar

KateLessardRAD katelessardrad

View GitHub Profile
public with sharing class WeekFiveClassExercises {
public static void allAboutSets() {
//Let's make a set
Set<String> cuisineTypes = new Set<String>();
//Why a set instead of a list? Usually because we need each entry in the collection to be unique.
//Perhaps we're creating a list of cuisines and it's possible we'll encounter the same one twice, but we don't want it to appear twice