Arrays | Sololearn: Learn to code for FREE!

+4

Arrays

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

2/11/2018 3:46:44 PM

Richard Cofie

2 Answers

New Answer

+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 ☺)

+4

thanks I didn't think of that