Java array - from test
<p>In my Java test was the next question:</p>

<blockquote>
  <p>there is the next method:</p>

<pre><code>public void changer(int[] x, int y) {

    x[y] = x[y] +3;
    y = y * 2;
}
</code></pre>
</blockquote>

<p>We have array named <code>a</code>, with the values:</p>

<blockquote>
<pre><code>2,4,0,1,-6,3,8,7,5
</code></pre>
</blockquote>

<p>if b = 3</p>

<p>what will be a and b values after the next call: </p>

<pre><code>changer(a,b);
</code></pre>

<p>My answer was:
b = 6</p>

<pre><code>a = 2,4,0,4,-6,3,8,7,5
</code></pre>

<p>I've tested it on BlueJ and got the same answer, but the tester wrote: wrong !</p>

<p>what do you say?</p>
