how to use enhanced for loop to print an array
<p>this is a simple program that takes  calculates gross sales and determines how many people have earned salary in ranges ( 200 to 299, 300 to 399, so on..) 
i have stored the values in an array ( counter)
how do i use an enhanced for loop to print my array ( not counter controlled, only enhanced)</p>

<p>this is my program</p>

<pre><code>public class Sales 
{

    public static void main(String args[])
    {
        //declare
        double salesData[] = {750, 1200, 5000, 7575, 10000, 9250, 12500, 3560, 4800};
        double gross = 0;//[] = new double[9];
        int counter[]= new int[9];
        int i=0;


        //walk through sales data
        for(i=0; i&lt;salesData.length;i++)
        {
            //calculate gross
            gross = 200 + salesData[i] * .09;

            //determine range and increment count array
            if((gross &gt;200) &amp;&amp; (gross  &lt;= 299))
                counter[0] ++;

            else if((gross &gt;300) &amp;&amp; (gross  &lt;= 399))
                counter[1] ++;

            else if((gross &gt;400) &amp;&amp; (gross  &lt;= 499))
                counter[2] ++;

            else if((gross &gt;500) &amp;&amp; (gross  &lt;= 599))
                counter[3] ++;

            else if((gross &gt;600) &amp;&amp; (gross  &lt;= 699))
                counter[4] ++;

            else if((gross &gt;700) &amp;&amp; (gross  &lt;= 799))
                counter[5] ++;

            else if((gross &gt;800) &amp;&amp; (gross  &lt;= 899))
                counter[6] ++;

            else if((gross &gt;900) &amp;&amp; (gross  &lt;= 999))
                counter[7] ++; 

            else if (gross &gt;1000)
                counter[8]++;
            //print gross
            System.out.println(gross);

        }
</code></pre>
