java.lang.NumberFormatException: For input string: " 10" code example Example: java.lang.NumberFormatException: For input string: "0.01"" Long.valueOf("0.01"");