Help me: Find the error in this java program
public class rad
{
public static void main(String args[])
{
int temp;
Random rand=new Random();
temp = rand.nextInt(6);
System.out.println("the temp is:"+temp);
}
}
the error msg is "wrong number of arguments in the method.
temp=rand.nextInt(6);