Java method not allowing a double?
<p>Alright, so here's my two classes:</p>

<pre><code>public void setArray(double anyValue){
    totalTax=0.0;
    total=0.0;
    for(int indexc=0; indexc &lt; costArray.size(); indexc++){
       System.out.println("Enter the item name: ");
       String anyName = keybd.next();
       itemArray.add(anyName);
       System.out.println("Enter the item cost: ");
       double cost = Double.valueOf(keybd.next()).doubleValue();
       costArray.add(" " + cost);
       totalTax = totalTax + (cost * anyValue);
       total = total + cost;
    }
    totalTax = totalTax;
    total = total;
}
</code></pre>

<p>And I'm calling it from: </p>

<pre><code>public TaxClass(int anyAmount)
{
    newList = new ArrayList&lt;Input&gt;(anyAmount);
}

    public void addItems(double anyTax){
    newList.setArray(anyTax);
    System.out.println("Item added!");
   }
</code></pre>

<p>I'm getting the error:cannot find symbol method setArray(double) ??</p>

<p>EDIT:    </p>

<pre><code>public void setArray(double anyValue){
 totalTax=0.0;
total=0.0;
for(int indexc=0; indexc &lt; costArray.size(); indexc++){
   System.out.println("Enter the item name: ");
   String anyName = keybd.next();
   itemArray.add(anyName);
   System.out.println("Enter the item cost: ");
   double cost = Double.valueOf(keybd.next()).doubleValue();
   costArray.add(" " + cost);
   totalTax = totalTax + (cost * anyValue);
   total = total + cost;
}
totalTax = totalTax;
total = total;
}`
</code></pre>

<p>Thanks!</p>
