0

Guys how to check the value of array using boolean??

14th May 2017, 5:37 AM
Dayon Daniel
Dayon Daniel - avatar
10 Réponses
+ 2
if (array[0] == array[2]) { // the first and third elements are the same }
14th May 2017, 5:45 AM
Tamás Barta
Tamás Barta - avatar
+ 2
Multi-dimensional array? if (array[0][0] == array[0][1]) { }
14th May 2017, 5:48 AM
Tamás Barta
Tamás Barta - avatar
+ 2
calls the length() and decreases its value by one ;)
16th May 2017, 4:49 AM
Tamás Barta
Tamás Barta - avatar
+ 1
Sorry, I don't understand your question. Could you write an example?
14th May 2017, 5:38 AM
Tamás Barta
Tamás Barta - avatar
0
like if this array [0] if its has the same value of array [2] how can I check it??
14th May 2017, 5:43 AM
Dayon Daniel
Dayon Daniel - avatar
0
what if multiple array ??
14th May 2017, 5:46 AM
Dayon Daniel
Dayon Daniel - avatar
0
thank you..😁😁
14th May 2017, 5:54 AM
Dayon Daniel
Dayon Daniel - avatar
0
can i ask again??
14th May 2017, 5:54 AM
Dayon Daniel
Dayon Daniel - avatar
0
what length()-1 does ??
16th May 2017, 4:47 AM
Dayon Daniel
Dayon Daniel - avatar
0
oohhhh..thank you
16th May 2017, 4:54 AM
Dayon Daniel
Dayon Daniel - avatar