title: java.lang.NumberFormatException: For input string: " "
body: <p>When I try to do this:</p>
  
  <p><code>total = Integer.parseInt(dataValues_fluid[i]) + total;</code></p>
  
  <p>It will give me an error message</p>
  
  <pre><code>java.lang.NumberFormatException: For input string: " "
  </code></pre>
  
  <p>Some of the values are " ". So thats why it gives me. But I tried </p>
  
  <pre><code>int total = 0;
  for(int i=0; i&lt;counter5; i++){
  
  if(dataValues_fluid[i]==" "){dataValues_fluid[i]="0";}
  
  total = Integer.parseInt(dataValues_fluid[i]) + total;
  }
  </code></pre>
  
  <p>I still get the same <code>java.lang.NumberFormatException</code> error.</p>