Scope Issue in java : <pre><code>public class Calculator {

    private int total;
    private int value;

    public Calculator(int startingValue){
        int total = startingValue;
        value = 0;
    }

    public int add(int value){
        int total = total + value;
        return total;
    }

    /**
    * Adds the instance variable value to the total
    */
    public int add(){
        int total += value;
        return total;
    }

    public int multiple(int value){
        int total *= value;
        return total;
    }

    public void setValue(int value){
        value = value;
    }

    public int getValue(){
        return value;
    }

}
</code></pre>

<p>The assignment says "For this exercise, we are going to take a look at an alternate Calculator class, but this one is broken. There are several scope issues in the calculator class that are preventing it from running.</p>

<p>Your task is to fix the Calculator class so that it runs and prints out the correct results. The CalculatorTester is completed and should function correctly once you fix the Calculator class."</p>

<p>I thought i did it right but it keeps telling me its wrong and the code will not run, how do i fix this scope issue?</p>
