android using ArrayLists <p>Is it a "good idea" to use an arraylist to iterate through a group of items in a game?</p> <p>For example if I have 5 "enemy objects" is it wiser to use this:</p> <pre><code>for (int e = 0; e &lt; maxenemy; e++) { Enemy[e].Update(); } </code></pre> <p>or can I use this with comprable results?</p> <pre><code>for(Enemy e : enemies) { Enemy.get(e).Update(); } </code></pre> <p>I'm trying to decide if using the ArrayList is a viable option instead of having a static array of "enemy objects"</p>