Concatenate integers in calculator app in java
<p>So I am working with a calculator application in java, and I need to write the heart of the code.  </p>

<p>I am writing a class that implements an interface, and in my <code>addDigit(int digit)</code> method I need it to display the concatenation of the two integers that the user presses on the program. </p>

<p>I have done some research and am finding things like <code>value = "" + digit * digit;</code> or something along these lines, but nothing seems to be working. </p>

<pre><code>public class BasicAccumulator implements Accumulator {

    private int digit;
    private int value;

    public void BasicAccumulator(int digit, int value)
    {
        this.digit = digit;
        this.value = value;
    }

    public void addDigit(int digit)
    {
        value = digit + "" digit;
    }

    public void plus()
    {
        value = digit + digit;
    }

    public void minus()
    {
        value = digit - digit;
    }

    public void clear()
    {
        value = 0;
    }

    public int displayValue()
    {
        return value;
    }
}
</code></pre>
