Question: how do I create a fizz buzz code that creates an ArrayList and uses a for loop that adds the integers from 1 to 100

how do I create a fizz buzz code that creates an ArrayList and uses a for loop that adds the integers from 1 to 100 then replaces "fizz" in the place of any number divisible by 3, "buzz" in the place of any number divisible by 5 and "fizzbuzz" in the place of any number divisible by 3 and 5, then prints it the ode out. (the ArrayList has to be able to hold integers and Strings)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!