HI guys, with this code
I created a 2 dimensional array. Now as I specified only the first dimension, I thought that it meant that in the second dimension I could only specify 2 arrays, like so
meaning that now I have 2 arrays and one contains 3 strings and the other one 2
But it seems like I can continue to declare more arrays in the second dimension like so
and I'm not sure I understand that, I thought I'd get an index out of bound exception because in my initial declaration I said I wanted only 2 arrays...
I created a 2 dimensional array. Now as I specified only the first dimension, I thought that it meant that in the second dimension I could only specify 2 arrays, like so
meaning that now I have 2 arrays and one contains 3 strings and the other one 2
But it seems like I can continue to declare more arrays in the second dimension like so
and I'm not sure I understand that, I thought I'd get an index out of bound exception because in my initial declaration I said I wanted only 2 arrays...