Arrays | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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