Type missmatch, cant convert from int to object.

From: Juggernaut (juggernaut8181_at_hotmail.com)
Date: 02/28/04


Date: Sat, 28 Feb 2004 18:54:04 +0100

I cant this to work.

I have already created the objects and such, now I want to fill it up with
random numbers. But I get that a type missmatch where it cant convert from
int to object. Neither can it work with the math.random class, same error
there.

Here is what Im trying to do:

// Fills array with random numbers,
for (int row=0; row < myCalendar.length; row++)
    {
for (int col=0; col < myCalendar[row].length; col++){
        {
num1 = generator.nextInt(100);
myCalendar[row][col] = num1;}
        }
    }



Relevant Pages