All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
Size of the dimensions is required to specified only at the time of instantiation and not at the time of declaration. For example, int[][] ia; //this is a valid declaration. int[][] ia = new int[2][3];//this is a valid declaration and a valid instantiation.
Just a little suggestion in the example also int[][] ia=new int[3][] is also valid,
as the choice 3, sasy
The number of rows and columns must be specified at the time it is declared.