This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Converstion of String To int Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Converstion of String To int
 
Similar Threads
confuse code
Doubt on Varargs and overriding
Unable to initialize two dimensional array in for loop
how to read speific lines in a text file
Change a String to an int