double array not allowing me to insert input
<p>my for loop wont let me use the counter to add a double into my array. i am getting errors after i define the counter in the for loop, and when i try to use the counter to add a string converted to a double into my array.</p>

<pre><code>import java.util.Scanner;

public class lab13 {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner input = new Scanner(System.in);

        double[] priceArray = {0, 0, 0, 0};

        for(int counter = 0, counter &lt; priceArray.length, counter++)        
            System.out.println("Please enter a price");
            Double priceArray[counter] = Double.parseDouble(input.nextLine());


    }

}
</code></pre>