I have one error if else array in my code. Thanks you. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have one error if else array in my code. Thanks you.

If else array. https://code.sololearn.com/cQPk8WEuT2mu/?ref=app

10th Dec 2020, 3:44 AM
Malick Diagne
Malick Diagne - avatar
2 Answers
+ 5
On line 14 You have got an *else-if* statement inside the *if* statement.
10th Dec 2020, 3:47 AM
Arsenic
Arsenic - avatar
+ 4
Adding to Arsenic 1. Your mytab2 variable is of type int[] but you wrote int. 2. You're returning boolean while it expects you to return int. 3. return statement is missing for your method myfunction().
10th Dec 2020, 6:21 AM
Minho
Minho - avatar