Hello;
I have a following method that allocates memory for some objects.
public static int formStyleOfLyle(int a)
{
ObjectL[] numberL = new ObjectL[a];
if(numberL==null)
{
return -1;
}
return 0;
}
I really dont know what this does; but I need to check the return value of this method in my main method for problems in memory allocation. Is this even possible, am I thinking alright or am I once again on the road to nowhere :).
Thank you for any info.
Cheers, Joey
EDIT : I know how to chek the return value and everything; but I dont know if the control statement up there does what I need it to do..