title: Equivalent of for x, y in z in java
body: <p>In python, you can use the structure <code>for x in [a, b, c, d]</code> for loops. This can be replicated using a foreach loop in java.</p>
  
  <p>What about if I wanted to replicate a <code>for x, y in z</code> loop, such as the one below, in java?</p>
  
  <pre><code>for x_off, y_off in ( (1, 2), (-1, 2), (1, -2), (-1, -2), (2, 1), (-2, 1), (2, -1), (-2, -1) ):
      #do something
  </code></pre>