Java: store to memory + numbers
<p>Im having a function:</p>

<pre><code>private void fixTurn(int turn)
</code></pre>

<p>And then I have:</p>

<pre><code>  memory1 = memory1 + count;
</code></pre>

<p>Now, I would like to make, if turn is 2 it should:</p>

<pre><code>  memory2 = memory2 + count;
</code></pre>

<p>I tried this:</p>

<pre><code>  memory + turn = memory+turn + count;
</code></pre>

<p>But will it will not work, should i just go with an if statement?</p>
