java.lang.NumberFormatException: For input string: " "
<p>java.lang.NumberFormatException: For input string: " "</p>

<p>I get this error when I try to do this: total = Integer.parseInt(dataValues_fluid[i]) + total;</p>

<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 java.lang.NumberFormatException error. </p>
