次のコードは、intenger 値が奇数か偶数かを出力し、switch ステートメントと for ステートメントをフォールスルーします。
for(int i=2; i<=10; i+=2)
{
switch(i)
{
case 1:
{System.out.printf("\nNot printing odd numbers");}
case 2:
System.out.printf("\n %d is an even number.", i);
//case 3:
//case 4:
}//end switch
}//end for