title: Java Loop Efficiency. if-continue OR if
body: <p>The question being thought today while completing my task is about the loop efficiency..</p>
  
  <p>Lets say. I have an array {'a','x','a','a'}
  And a loop that should <strong>avoid</strong> 'x' element
  Now i wonder how these two approach differ in term of efficiency - <strong>not taking the while or do-while or for loops differentiation</strong> </p>
  
  <pre><code>char[] arrExample = {'a','x','a','a'};
  for(int idx = 0; idx&lt;arrExample.length; idx++){
      if(arrExample[idx] == 'x')
          continue;
  
      System.out.println(arrExample[idx]);
  }
  </code></pre>
  
  <p>and the common loop look like this</p>
  
  <pre><code>char[] arrExample = {'a','x','a','a'};
  for(int idx = 0; idx&lt;arrExample.length; idx++){
      if(arrExample[idx] != 'x')
          System.out.println(arrExample[idx]);
  }
  </code></pre>
  
  <p>so.. expert comments are pleased. Thanks!</p>