Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String to int?

Status
Not open for further replies.

chuq2001

Programmer
Jul 15, 2002
24
0
0
US
I have a Sting that is a number("010") and want to convert it to an int. How can I do that?

Any Help?
Thanks
Chuck T
 
you can use

int i = Integer.valueOf("010").intValue() ;


hope this help you :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top