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