I am trying to make an array of random numbers that range from 0-9 with the variable for this one being kickerNumbers. I get a compile error though saying incompatible types. I have tried changing the (int) to [int] like it said but I didn't think that would be right anyway and surly enough it wasn't. Is there another way to write this? I need it to act as the first four numbers of this to be 0-9 but the fifth number would need to be something smaller such as 0-4. for the 0-4 one I just made that a completely different variable. Was that a good choice? Here is the sample code for the lines that give the error.
import java.util.Scanner;
import java.util.InputMismatchException;
public class CashBallTest
{
public static void main(String[]args)
{
Scanner keyboard = new Scanner(System.in);
int kicker;
int[] kickerNumbers = (int)(Math.random()*0+9);
int kickerPowerball=(int)(Math.random()*0+4);
The error reads: "\CashBallTest.java:9: incompatible types found : int required: int[] int[] kickerNumbers = (int)(Math.random()*0+9);"
I have also tried changing (int) to (int[]) but then it said it was an inconvertible type counting as a double when it needs to be an int[] but I don't see where it gets the double type from