Hmm, I must have been tired when I posted that (and/or crazy), but either method can actually be used to create jagged arrays. However, the other info should be accurate.
Type: Posts; User: helloworld922
Hmm, I must have been tired when I posted that (and/or crazy), but either method can actually be used to create jagged arrays. However, the other info should be accurate.
Directly initializing an N-d array can only be done when the array is first declared.
int a[] = {1,2,3}; // understood implicitly as int a[]= new int[]{1,2,3};
int b[];
b = new int[]{1,2,3};
...