title: How to read floating values from excel in java and selenium
body: <p>I want to read values like <code>11610.1073</code> from excel using java and selenium. I tried below code but it throws me <code>null pointer exception</code> when I am trying to parse that value and store it in array variable. I am able to read <code>int</code> values but unable to do the same with the <code>float</code> values. Below is my code:  </p>
  
  <pre><code>StagePTDFTE.add(Float.parseFloat(row.getCell(2).getStringCellValue().toString()));
  StagePTDFTEArray = new float[StagePTDFTE.size()];
      for (int i = 0; i &lt; StagePTDFTEArray.length; i++) {
          StagePTDFTEArray[i] = Float.parseFloat(df.format(StagePTDFTE.get(i)));
              }   
  </code></pre>
  
  <p>Please let me know where I am going wrong and what should be the modifications required here. Thanks in advance :)</p>