hai,
I want to convert String to int.My coding is like this,
[code=java]
rs=stmt.execute Query("select a from mailtable");
rs.absolute(-1);
String id=rs.getString ("a");
System.out.prin tln(id);
id= id.substring(3, (id.length()));
System.out.prin tln("value of id is "+ id);
[/code]
at last this id having an numeric value ,I want to convert this to int. After this i want to add 1 to that int value.How to do this please help me.
[code=java]
Integer.parseIn t(id);
[/code]
This is not working. It gives NumberFormatExc eption. Please anyone can help me.
This is very urgent for me.
I want to convert String to int.My coding is like this,
[code=java]
rs=stmt.execute Query("select a from mailtable");
rs.absolute(-1);
String id=rs.getString ("a");
System.out.prin tln(id);
id= id.substring(3, (id.length()));
System.out.prin tln("value of id is "+ id);
[/code]
at last this id having an numeric value ,I want to convert this to int. After this i want to add 1 to that int value.How to do this please help me.
[code=java]
Integer.parseIn t(id);
[/code]
This is not working. It gives NumberFormatExc eption. Please anyone can help me.
This is very urgent for me.
Comment