title: Parsing String to Double
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6063115/existing-string-to-double">Existing String to Double</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to parse String into Double, and I'm not sure if it is the correct way to do it. If anyone can help me check on it, and give feedback I'd really appreciate it.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>    String amount = enterAmount.getText().toString();
      double subtotal = Double.valueOf(amount).doubleValue();
  </code></pre>
  
  <p>Thank you in advance for your kind comments.</p>