title: Retrieve INTEGER values from excel using JAVA
body: <p>My aim is to read an excel file uisng POI and print the values present in it. If the value is 5 then my output must be 5. but it is returning as 5.0. The below is the code that I have tried.</p>
  
  <pre><code>    FileInputStream fileInputStream = null;
      XSSFSheet xssfResultSheet = null;
      String filePath = "C:\\MyXcel.xlsx";
      fileInputStream = new FileInputStream(new File(filePath));
      XSSFWorkbook workbook = null;
      workbook = new XSSFWorkbook(fileInputStream);
      xssfResultSheet = workbook.getSheet("Sheet1");
      int iRowCount = xssfResultSheet.getLastRowNum();
  
      for (int i = 1; i &lt;= iRowCount; i++) {
          Row resultRow = xssfResultSheet.getRow(i);
          System.out.println(resultRow.getCell(0));
      }
  </code></pre>
  
  <p>My Excel has values 1,2,3 but my output is 1.0,2.0,3.0. Instead my output should also be    1,2,3</p>