现在又改成 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.
rs是从哪里来的?
try{
....
}catch(Exception e) {
out.write(e); // 输出具体的错误以进行下一步分析
}
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.