method in class cannot be applied to given types

后端 未结 4 2169
傲寒
傲寒 2020-12-05 23:44

I\'m creating a program that generates 100 random integers between 0 and 9 and displays the count for each number. I\'m using an array of ten integers, counts

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-06 00:17

    generateNumbers() expects a parameter and you aren't passing one in!

    generateNumbers() also returns after it has set the first random number - seems to be some confusion about what it is trying to do.

提交回复
热议问题