in JavaScript and also I\'ve seen it in PHP : You can use a logical expression inside you cases : For Example :
switch(true){ case (d<10): document.write(\"Le
No You cannot do that using switch in java. You have to use if-else to accomplish this.
if-else
See this link for more details.