title: java.lang.NumberFormatException: For input string: "1,167.40"
body: <p>I'm reading data from CSV file. One of the fields contains the value <code>1,167.40</code>. The code piece for reading this field is the following:</p>
  
  <pre><code>String csvFilename = "TEST_FILE.csv";
  CSVReader csvReader = new CSVReader(new FileReader(csvFilename));
  String[] row = null;
  csvReader.readNext(); // to skip the headers
  while((row = csvReader.readNext()) != null) 
  {
    double val = Double.parseDouble(row[0]); // !!!
  }
  csvReader.close();
  </code></pre>
  
  <p>The line <code>double val = Double.parseDouble(row[0])</code> results in the following error message:</p>
  
  <blockquote>
    <p>java.lang.NumberFormatException: For input string: "1,167.40"</p>
  </blockquote>
  
  <p>How to solve this issue?</p>
  
  <p>P.S. For other values like <code>111.64</code> this error does not appear.</p>