Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1380 :

Posted: Tue Nov 04, 2014 10:01 am
by Kevin_C
First answer has

Code: Select all

int[][] array 2D = new int[][] { { 0, 1, 2, 4} {5, 6}};
With the explanation:
It is missing a comma between 4} and {5.
It should be: new int[][] { { 0, 1, 2, 4} , {5, 6}};


Even with this comma it would still have failed, since there is also a space between array and 2D. Personally I didn't even noticed the missing comma since I already noticed this space and knew it failed. :lol:

Re: About Question enthuware.ocajp.i.v7.2.1380 :

Posted: Tue Nov 04, 2014 1:07 pm
by admin
True. that is a valid reason as well. Fixed.
thank you for your feedback!