This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |