Out of Memory
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment