title: How do I put an int in a string (java)
body: <p>Here's my problem:</p>
  
  <pre><code>public class Sum {
  
    private int sum;
    private String sequence = " ";
  
    public int getSum() {
      return sum;
    }
  
    public void setSum(int sum) {
      this.sum = sum;
    }
  
    public String getSequence() {
      return sequence;
    }
  
    public void setSequence(int sum) {
      this.sequence = sequence + " " + sum;
    }
  
  }
  </code></pre>
  
  <p>And the types are incompatible in line 15, which is "required: int"</p>
  
  <p>Can anybody help me with this? Please and thank you.</p>
  
  <p>*<strong>edit</strong>
  Sorry for not being able to put line 15. Line 15 is:</p>
  
  <pre><code>return sequence;
  </code></pre>