cancel
Showing results for 
Search instead for 
Did you mean: 

TypeCasting

sureshmandalapu6
Active Contributor
0 Kudos

Hi experts,

can anyone tell me how to convert the string variable to integer variable in WebDynpro Java.

Thanks

Suresh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Integer.valueOf(your String);

or

new Integer(String).intValue();

Edited by: Sudhir Gorantla on Aug 6, 2008 4:29 PM

sureshmandalapu6
Active Contributor
0 Kudos

Hi Sudhir Gorantla ,

sorry, I need to convert into int variable , not Integer. I thought they might be the same.

help me

Thanks

Suresh

Former Member
0 Kudos

Hi

int i=new Integer(String).intValue();

former_member197348
Active Contributor
0 Kudos

String a;

int b = Integer.parseInt(a);

regards,

Siva

Former Member
0 Kudos

Hi,

sorry, I need to convert into int variable , not Integer. I thought they might be the same.



 String strX ="10";
 int x = Integer.parseInt(strX);

Regards

Ayyapparaj

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

int input=Integer.parseInt(<your input String>);

Regards,

Ramesh