title: For loop not evaluating
body: <p>I can't figure this out. I have the following code:</p>
  
  <pre><code>import java.util.ArrayList;
  import java.util.List;
  
  
  public class TestLoop {
      public static List&lt;String&gt; strArray = new ArrayList&lt;String&gt;();
  
      static {
          strArray.add("Some");
          strArray.add("Silly");
          strArray.add("String");
      }
  
      public static void main(String[] args) {
          int doNotPrintIndex = 1;
          int beginIndex = doNotPrintIndex == 0 ? 1 : 0;
          for (int i = beginIndex; i &lt; strArray.size() &amp;&amp; i != doNotPrintIndex; i++) {
              System.out.println(strArray.get(i));
          }
      }
  
  }
  </code></pre>
  
  <p>Essentially, if I have an <code>ArrayList</code>, I never want to print out what is stored at index '<code>doNotPrintIndex</code>' within the <code>ArrayList</code>. However, in the following case, the loop only executes once. Is there something wrong in my logic? </p>