Converting a string to an integer value

How can I convert a string to an integer?
[48 byte] By [markyoung1984a] at [2007-10-2 21:19:14]
# 1
If you need int valu you can use Integer.parseInt(String s)if you need Integer you can use Integer.valueOf(String s) of new Integer(String s)
s-e-r-g-ea at 2007-7-14 0:28:24 > top of Java-index,Java Essentials,New To Java...
# 2
int i = Integer.parseInt("1");kari-matti
kari-mattia at 2007-7-14 0:28:24 > top of Java-index,Java Essentials,New To Java...
# 3
sorry, not "of new Integer.." but "or new Integer(.."Message was edited by: s-e-r-g-e
s-e-r-g-ea at 2007-7-14 0:28:24 > top of Java-index,Java Essentials,New To Java...
# 4
Cheers guys, much appreciated
markyoung1984a at 2007-7-14 0:28:24 > top of Java-index,Java Essentials,New To Java...
# 5
Not to be a nag, but paste the phrase "Converting a string to an integer value" into google and search, and you find an answer right away.
shelziba at 2007-7-14 0:28:24 > top of Java-index,Java Essentials,New To Java...