| Author |
Change a String to an int
|
matt prowell
Greenhorn
Joined: Jul 12, 2004
Posts: 18
|
|
|
I need to take a String and make it an int. Thanks for any help!
|
 |
luc comeau
Ranch Hand
Joined: Jan 20, 2005
Posts: 97
|
|
hey This is probably a dirty way to do it, but yah...it works Pretty sure that works, dunno how efficient or what not it is.... good luck
|
National Research Council<br />Internet Logic Department
|
 |
luc comeau
Ranch Hand
Joined: Jan 20, 2005
Posts: 97
|
|
im a retard its suposed to be ----theInt=Integer.parseInt(theString);---- my bad
|
 |
Lionel Badiou
Ranch Hand
Joined: Jan 06, 2005
Posts: 140
|
|
Hello Matt, Look at the java.lang.Number.Integer.parseInt(String) method. Hope that helps,
|
Lionel Badiou
CodeFutures Software
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15229
|
|
|
Not about GUI stuff, moving to Java in General (Intermediate)
|
 |
 |
|
|
subject: Change a String to an int
|
|
|