你确认都是数字?没有字母?
double balance1=0;
double chongzhi1=0;如果还不行,请给出错误信息!

解决方案 »

  1.   

    现在又改成
     double balance=0.00;
     double chongzhi1=0.00; String chongzhi=request.getParameter("chongzhi");
     balance=(rs2.getDouble("BALANCE")).doubleValue();
     chongzhi1=Double.parseDouble(chongzhi);
     chongzhi1=chongzhi1+balance;报错如下:
     D:\\Program Files\\Allaire\\JRun\\servers\\default\\IIMS-Web-Application\\jsp\\wq\\fenxi.jsp:94: Error: The type of this expression, "double", is not a valid reference type in this context.