I get an error trying to execute this code.
My requirement is to use getInt()
to convert a string in to DB.
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;
...