title: How to multiply two edittext values and automatically display the result in the third EditText in Android
body: <p>I have written a program for a form which has some 7 to 8 fields , what I want to do is , suppose i am entering a value in EditText 1 as 50 , and in EditText 2 as 60 , the EditText 3 should be automatically calculated to 3000 without clicking any button or performing any event
  Can anyone suggest me how to do it ?</p>
  
  <pre><code>double a = Double.parseDouble(editDieselRate.getText().toString());
  double b = Double.parseDouble(editDieselQty.getText().toString());
  double c = a * b;
  editAmount.setText(String.valueOf(c));
  </code></pre>
  
  <p>I know i am wrong but just gave it a try , and got number format exception </p>
  
  <p>Thanking You</p>