Need a little Java help...
How would I do this:
1. Generate an array of 20 random integers from zero to nine. search for the first occurence, if any, of the number seven, and report its position in the array.
2. Repeat the computation of part a 1000 times and for each position in the array, report the number of times that the first occurence of a seven in the array is at that position.
|