I'm sorry to ask such a basic question, but I cannot see by myself where my code breaks. I am trying to define a two-dimensional array of objects, and as far as I can tell the code is failing to register the second dimension. Later code is accordingly unable to designate a two-dimensional index within the array, as the second dimension exists only as a null quantity.
I'm feeling pretty stupid here. I have to imagine my error is something glaringly basic as there is not enough code involved for it to be nuanced, and yet I cannot see it! I'd appreciate any help you could give me to focus my apparently blind eyes on the problem.
Here is my code:
int x = 17;
Object[][] 2Darr = new Object[50][x];
Running this code yields an array defined as [50][].