Topic: 加急,这个问题困我2周了 |
Print this page |
1.加急,这个问题困我2周了 | Copy to clipboard |
Posted by: zsh220824 Posted on: 2008-02-25 13:36 以下程序执行后,修改的记录全变为0,不知为什么? if (!aenglish.equals("")) { int english = Integer.parseInt(aenglish); atotal = atotal + english; rs.updateInt("english", english); rs.updateRow(); |
2.Re:加急,这个问题困我2周了 [Re: zsh220824] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2008-02-29 23:09 C'mon, it is a very easy program to debug with. Or simply print the value of "english" to your trace log before updating the database. I don't see any difficulty of doing this. You shall fix it yourself. Regards, Jiafan |
3.Re:加急,这个问题困我2周了 [Re: zsh220824] | Copy to clipboard |
Posted by: 我是老伟 Posted on: 2008-03-12 12:46 版主是老外吗? |
4.Re:加急,这个问题困我2周了 [Re: zsh220824] | Copy to clipboard |
Posted by: syd2010 Posted on: 2008-03-24 20:41 我想是equals()方法没有重写吧... equals()默认对比的是引用 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |