aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Converstion of String To int Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Converstion of String To int" Watch "Converstion of String To int" New topic
Author

Converstion of String To int

Aru Ven
Ranch Hand

Joined: Sep 28, 2000
Posts: 199
Hi All,
Can someone help me with how to convert an String to a int....
I am writing a piece of code & I am having some problem if I used the intValue() function. Help.
Thanks,
Aruna
ali farid
Ranch Hand

Joined: Aug 26, 2000
Posts: 60
Hi
you can use this:
String str="123";
int i=Integer.parseInt(str);
Aru Ven
Ranch Hand

Joined: Sep 28, 2000
Posts: 199
Thx Ali,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converstion of String To int