Java Arraylist printing every other number in a list
<p>This is my code for printing the random numbers in an arraylist:</p>

<pre><code>public void printList()
{
    System.out.println("The numbers on the list: ") ;
    for (int i = 0 ; i &lt; aList.size() ; i++)
    {
        System.out.print( aList.get(i) + "  ") ;
    }
    System.out.println("\n") ;                
}
</code></pre>

<p>How would I print every other number of this same list? By using a do-while loop?</p>
