Dwayne Jenkins wrote:I really want to learn this material, and disappointed I am having so much trouble figuring this one out.
Dwayne Jenkins wrote:
-Just finished chapter on Methods/calling methods/passing arguments to a method… so I have to demonstrate my understanding of that
Carey Brown wrote:Please note: Never go back an edit a post once people have responded to it, it makes the people sound dumb. Re-post the code again after you make changes.
That is slightly unusual. Most indexing on computer sciences is done on a 0‑based basis. Anyway: have you got a way of generating that number? Well, sort of (line 48). I don't like arithmetic with Math.random(), not even if the Java™ Tutorials show you an example. Random has a method which produces such a result more efficiently, but make sure to read its documentation carefully.
Dwayne Jenkins wrote:. . . random number generated between 1 and 33,736, inclusive. . . .