Out of Memory
Pages
(Move to ...)
Learning Resources
▼
Sunday, December 16, 2012
How to convert string to int in Java?
int
foo
=
Integer
.
parseInt
(
"1234"
);
See the
Javadoc
for more information.
(If you have it in a StringBuffer, you'll need to do
Integer.parseInt(myBuffer.toString());
instead).
http://stackoverflow.com/questions/5585779/how-to-convert-string-to-int-in-java
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment