title: What's the difference between int x int y and int x,y
body: <p>Between:</p>
  <pre><code>int x;
  int y;
  </code></pre>
  <p>and:</p>
  <pre><code>int x, y;
  </code></pre>
  <p>For example, in the next code:</p>
  <pre><code>public static boolean sda4(int[] arr) {
      for(int i=0, j=arr.length/2; i&lt;arr.length/2 &amp;&amp; j&lt;arr.length; i++, j++)
          if(arr[i]!=arr[j]) return false;
      return true;
  }
  </code></pre>
  <p>If I type inside the for loop <code>(int i=0, int j=arr.length/2)</code> it says &quot;syntax error&quot;.</p>