Creating classes with for loop with the index name in it
<p>I want to make 4 classes for 4 players. So i thought that it can be easily fixed with a for loop.</p>

<pre><code>for(int i = 0; i&lt;playerlist.size(); i++){
    PlayerStats player+i = new PlayerStats(playerlist.get(i),app,0f,135f,190f,100f);
    app.addGameObject(player+i);
    }
</code></pre>

<p>This does not work..
Has anyone a solution for this problem?</p>

<p>Thanks in advance!</p>