Welcome to the Ranch
I don't like arithmetic with
Math#random(). Look at this
thread. It may have more links to older threads which will be useful.
The method declaration tells you the name of the method, and that it returns an array of popcorn. What it doesn't tell you is that the array will be full of
nulls because it has never been populated.
Where does that method come from?