About Question enthuware.ocajp.i.v7.2.1380 :
Posted: Tue Nov 04, 2014 10:01 am
First answer has 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.
Code: Select all
int[][] array 2D = new int[][] { { 0, 1, 2, 4} {5, 6}};
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.
