+ 4

Arrays

How can I compare one variable against a multidimensional array all at once and return true or false in java

11th Feb 2018, 3:46 PM
Richard Cofie
Richard Cofie - avatar
2 ответов
+ 19
nice question ☺ /*for n dimensional array , U can use n enhanced for loops to traverse throught each element of the array*/ 👉but what when U don't know " what dimensional array you have or if n is bigger number " ? //i'll find the answer soon & if i find(i'll post here ☺)
11th Feb 2018, 4:33 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
thanks I didn't think of that
11th Feb 2018, 7:05 PM
Richard Cofie
Richard Cofie - avatar