Karen Guffey wrote:Yes. I know that I can do this
to go through the list, but I don't know how to say in code "if any item on this list has a count of fewer than 2, make that item have 50."
That is because you don't have a class which encapsulates the type of snack and the number left. If you had such a class you could create an array of its instances and gain access to the number left easily.