And a short example :
int n ;
switch(n){
case 0:
case 1:
case 2: System.out.println ( "the number is <= 2"); break;
case 3:
case 4:
case 5: System.out.println ( "the number is >=3 and <= 5"); break;
default : System.out.println ( "the number is grater than 5"); break;
}