Question: Java programming Create an ArrayList of cereals (Cereal), and add the following cereals to the list: Frosted Flakes Wheaties Rice Krispies Cheerios Fruit Loops Print
Java programming
Create an ArrayList of cereals (Cereal), and add the following cereals to the list:
Frosted Flakes Wheaties Rice Krispies Cheerios Fruit Loops
Print out the list of cereals. Delete Fruit Loops (too sugary). Print out list of cereals. Add Corn Flakes to the list; put it in the second spot. Print out the list of cereals, but ensure you print it out with a tab between each cereal. Finally, print out the size of the ArrayList.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
