title: How to change Text view to int and use it in mathematical operations?
body: <p>Hello I'm trying to make an app that gives you 2 random numbers and the user has to add the 2 random numbers, so my error is that that the random numbers are widgets not integers, </p>
  
  <p>I have tried hundreds of explinations but nothing is working.</p>
  
  <pre><code> public void action(View v){
      num1.setText(String.valueOf(randNum1.nextInt(10)));
  
  
      num2.setText(String.valueOf(randNum2.nextInt(10)));
  
  
      userAnswer.getText();
  
      if (num1 + num2){
  
      }
  }
  </code></pre>
  
  <p>and this is the error:</p>
  
  <blockquote>
    <p>bad operand types for binary operator '+' first type:  TextView second
    type: TextView</p>
  </blockquote>