【发布时间】:2016-02-12 04:09:45
【问题描述】:
我在尝试执行此代码时遇到错误。
我的要求是使用getInt() 将字符串转换为数据库。
for (int i = 1; i <= 7; i++) {
int t = rs.getInt(i);
temp = Integer.toString(t);
if (temp.length() == 1) temp="00"+temp;
else if (temp.length() == 2) temp="0"+temp;
else temp=temp;
output=output+temp;
...
【问题讨论】: