java.lang.NumberFormatException: For input string: “10.0”
问题 This code must validate input data from the findActions() method: 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); } But I always have java.lang.NumberFormatException: For input string: "*number*" that is so strange, because checking with System.out.println(findActions(lookingArea