title: Getting Error java.lang.NumberFormatException: For input string: "16.0"
body: <p>I  want to convert the cell value into <code>int</code> value so i am trying following code:</p>
  
  <pre><code>for (int chk1 = 1; chk1 &lt; m; chk1++ ) {
     int intCounter = Integer.parseInt( cells.checkCell(chk1,0).getValue().toString() );
  }
  </code></pre>
  
  <p>But it is accepting only the string format if there is any number then it is giving me </p>
  
  <pre><code>java.lang.NumberFormatException
  </code></pre>
  
  <p>How can I avoid this? Is there any way to convert all data into integer or into String or vice versa?</p>