title: java.lang.NumberFormatException: For input string: "10.0"
body: <p>This code must validate input data from the findActions() method:</p>
  
  <pre><code>try {
      System.out.println(findActions(lookingArea.substring(0, right)));// always printing valid number string
      Integer.parseInt(findActions(lookingArea.substring(0, right)));// checking for number format
  }
  catch(NumberFormatException exc) {
      System.out.println(exc);
  }
  </code></pre>
  
  <p>But I always have <code>java.lang.NumberFormatException: For input string: "*number*"</code>
  that is so strange, because checking with <code>System.out.println(findActions(lookingArea.substring(0, right)));</code>, </p>
  
  <p>I get <code>*number*</code> like 10.0</p>