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
Get step-by-step solutions from verified subject matter experts
