Hi,
I have say 25 if-else if conditions.So,should i have only 25 if-else if conditions.
Is there any better/effective way of checking it?
The disadvantage i see here is, if the condition satisfies only at 25th condition, it needs to check unnecessarily for 24 conditions.
PS : if-else if check i mean here can be anything (From
String literal to an Object).
Please suggest.
Thanks.
Regards
Senthil Kumar Sekar