15.01.2014, 17:09
Agree with Vince. I won't be minding to use if-else statement for any amount of cases. Just that it is slow as compared to switch statement. NOT bad or wrong or etcetera. Also, this isn't called a tutorial, you have just gave a hint/suggestion in improving it. Just provide some something like information about if-else statement and switch statement.