Type missmatch, cant convert from int to object.
From: Juggernaut (juggernaut8181_at_hotmail.com)
Date: 02/28/04
- Next message: Ricardo: "Re: Printing problem"
- Previous message: Juggernaut: "Re: Two dimensional calendar array"
- Next in thread: Ryan Stewart: "Re: Type missmatch, cant convert from int to object."
- Reply: Ryan Stewart: "Re: Type missmatch, cant convert from int to object."
- Reply: Bobo: "Re: Type missmatch, cant convert from int to object."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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;}
}
}
- Next message: Ricardo: "Re: Printing problem"
- Previous message: Juggernaut: "Re: Two dimensional calendar array"
- Next in thread: Ryan Stewart: "Re: Type missmatch, cant convert from int to object."
- Reply: Ryan Stewart: "Re: Type missmatch, cant convert from int to object."
- Reply: Bobo: "Re: Type missmatch, cant convert from int to object."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|