numberformatexception

-
For example , if the string " 123a " is mapped to an integer , you will see a NumberFormatException in the server log .
例如,如果将字符串“123a”映射到到一个整数,您将在服务器日志中看到NumberFormatException。
-
Keying in a leading sign ( and removing the comma ) makes the program happy , but the result for a trailing sign is : NumberFormatException for input string : " 123456.7 - " .
键入一个前置符号(同时去掉逗号)能让程序顺利运行,但键入后置符号的结果是:输入字符串出现NumberFormatException:“123456.7-”。