+ 2
Can I use multiple IF statements?
Can I use multiple IF statements instead of ELSE IF in JAVA?
4 Answers
+ 8
Yes Bartlomiej was right, it's called chaining as well to group multiple conditions with similar purpose. đ
+ 4
I think, I already know the answer. Both will work, but ELSE IF stops if it meets its condition... multiple IF will go on every time. So generally they are different. Else if however is more efficient
+ 3
If else if are suited, then use them
0
It can work but else if would be more accurate according to me