method in class cannot be applied to given types method in class cannot be applied to given types arrays arrays

method in class cannot be applied to given types


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.


call generateNumbers(numbers);, your generateNumbers(); expects int[] as an argument ans you were passing none, thus the error


The generateNumbers(int[] numbers) function definition has arguments (int[] numbers)that expects an array of integers. However, in the main, generateNumbers(); doesn't have any arguments.

To resolve it, simply add an array of numbers to the arguments while calling thegenerateNumbers() function in the main.