Given the following code: ArrayList ingredients = new ArrayL…
Given the following code: ArrayList ingredients = new ArrayList(); ingredients.add(“sugar”);ingredients.add(“flour”);ingredients.add(“vanilla”);ingredients.add(“butter”); What is the code to access the number of items in the ingredients arrayList?