What is the best way to check if variable is bigger than some number using switch statement? Or you reccomend to use if-else? I found such an example:
int i; i
Unfortunately you cannot do that in java. It's possible in CoffeeScript or other languages.
CoffeeScript
I would recommend to use an if-else-statement by moving your "do stuff" in extra methods. In that way you can keep your if-else in a clearly readable code.
if
else