java.lang.NumberFormatException: For input string:

来源:互联网 发布:vb.net 资源文件exe 编辑:程序博客网 时间:2024/05/20 04:29

通常是由于转型引起的:

如:

String price=request.getParameter("price");

float price2=Float.parseFloat(price);

如果price为空或为非数字类型值,则会发生这个错误

原创粉丝点击