title: How to catch odd numbers using switch
body: <p>The following code should print whether intenger value is odd or even with fall through switch statement and for statements</p>
  
  <pre><code>for(int i=2; i&lt;=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
  </code></pre>