title: Is there a way to loop through 2 for loops, such that (i+j) > 3
body: <p>I have an issue with a hexagonal matrix system. I want to loop through 2 arrays of length 6, but I need to exclude the "rhombus" combinations from the hexagon. So that means that the value of i+j needs to be greater than 3 and lower than 13. Here is some code so you might get the idea better:</p>
  
  <pre><code>public static void main(String args[]) {
      int i, j;
      for(i=0; (i+j)&gt;3 &amp;&amp; i&lt;9; i++) {
          for (j=0; (i+j)&gt;3 &amp;&amp; j&lt;(9); j++) {
              System.out.println(i);
              System.out.println(j);
          }
      }
  }
  </code></pre>
  
  <p>So i want the output to be 0,4 , 1,3 , 2,2 , 3,1 , 4,0 and everything above until 4,8 , 5,7 , 6,6 , 7,5 , 8,4</p>
  
  <p>I hope that this is clear enough, and yes I get that what I have will never output what I expect it to do, but that's the whole problem :)</p>