How to check if an array is initialized?
807601Dec 28 2007 — edited Dec 28 2007Hi, this is my first post on this forums, and I have a question that I could not find the answer to using Google or the forum search feature.
My question is: How do I check to see if an array variable is initialized?
My goal here is to have something like:
// Somewhere in the program:
int[] foo;
// Somewhere else in the program:
if (foo is not initialized) {
// do stuff
}