Computer Science Canada Converting types |
Author: | Insectoid [ Wed Sep 17, 2008 4:32 pm ] |
Post subject: | Converting types |
Yay! My first post in the Java forums! Anyways, I am working on program (duh!) and need to convert a string to and integer. I had the error just at the end of class, so my teacher couldn't tell me how and there wasn't time to look it up in the class library. Thanks in advance. |
Author: | [Gandalf] [ Wed Sep 17, 2008 4:39 pm ] |
Post subject: | RE:Converting types |
Integer.parseInt("5") I believe. No problem. ![]() |
Author: | Insectoid [ Wed Sep 17, 2008 6:17 pm ] |
Post subject: | RE:Converting types |
Great! Thank you, this has been bugging me all day (since last period). |
Author: | [Gandalf] [ Wed Sep 17, 2008 7:16 pm ] |
Post subject: | RE:Converting types |
Remember, Google can answer these questions just as easily: first result from "java convert string to integer". And Sun has great Java documentation at java.sun.com. ![]() |
Author: | Insectoid [ Wed Sep 17, 2008 7:43 pm ] |
Post subject: | RE:Converting types |
D'oh! I always forget about google... |