title: Converting a setText to a double
body: <p>I need to convert the answer from the calculator into a string then to a double.</p>
  
  <p>This is my code thus far:</p>
  
  <pre><code>final Button multiply =(Button)findViewById(R.id.multiply);
          final EditText num1 =(EditText)findViewById(R.id.carboninput);
          final EditText num2 =(EditText)findViewById(R.id.distanceinput);
          final TextView ans =(TextView)findViewById(R.id.answer);
  
          multiply.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  double n1 = Double.parseDouble(num1.getText().toString());
                  double n2 = Double.parseDouble(num2.getText().toString());
  
                  ans.setText(String.valueOf(n1*n2));
  
  
              }
          });
      }
  }
  </code></pre>
  
  <p>I need to make the </p>
  
  <pre><code>ans.setText(String.valueOf(n1*n2));
  </code></pre>
  
  <p>into a string that can be shown in the next idea then convert it to a double so the user can multiply the answer again.</p>