I am pretty new to java.
I want to have an array of a class whose length may vary during run time
code:
class Num
{
......
......
}
if Num is my class , how will i create new instances. My current code is pretty similar to:
Num n[ ];
int length=0;
.
.
.
n[length++]=new Num();
from this code I'm getting error :
"Uncompilable source code - variable factors might not have been initialized"
factorsdeclared but not initialized?