Which of the following is a best way of declaring x as a two-dimension array in java
*int[][] x = new int[10][20]*
int[10][20] x = new int[20][10];
int[2] x = new int[];
int[]x = new int[2];
Tutors, Past Questions and Projects.
Which of the following is a best way of declaring x as a two-dimension array in java
*int[][] x = new int[10][20]*
int[10][20] x = new int[20][10];
int[2] x = new int[];
int[]x = new int[2];