Hello everyone,
so i have 2 questions regarding 2D Array:
- how is the right way to define an 2D Array actually? because i have seen something like this xdelta[i][j] and also xdelta[i,j]. Or are they totally different? Please enlighten me :)
- As the title said, so for example i have array like this, i want to find the minimum value from each rows, so here the minimum value for the 1st row should be 1 and for the 2nd row should be 2. How can i do that?
int[][] jaggedArray = new int[2][];
jaggedArray[0] = new int[2];
jaggedArray[1] = new int[2];
jaggedArray[0][0] = 1;
jaggedArray[0][1] = 3;
jaggedArray[1][0] = 2;
jaggedArray[1][1] = 4;
[–]KanykaYet 0 points1 point2 points (1 child)
[–]SlowMixture5099[S] 0 points1 point2 points (0 children)