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?
Krystian Wie wrote:
You declare array Popcorn and method? How?
Somewhere a class named Popcorn must be defined.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
Their achilles heel is the noogie! Give them noogies tiny ad!