+ 1

How to pass two 2d array in method????

I tried to call both the arrays using (int[][]a, int[][]b) but it's showing can't convert int to int[][]... can u guys tell me what's wrong!!!

22nd Feb 2018, 2:10 PM
Shrawan Chakradhar
Shrawan Chakradhar - avatar
2 Antworten
+ 2
think of a multi dimensional array as a x,y coordinates. to apply a int into int[][], you have to get it's position of where the int is located. so for example: https://code.sololearn.com/caGtm6p0WNKX/?ref=app
22nd Feb 2018, 2:52 PM
Annabella Atherton Rosen
Annabella Atherton Rosen - avatar
0
thanks bro I got it
22nd Feb 2018, 7:14 PM
Shrawan Chakradhar
Shrawan Chakradhar - avatar