Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Converting types
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Insectoid




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
[Gandalf]




PostPosted: Wed Sep 17, 2008 4:39 pm   Post subject: RE:Converting types

Integer.parseInt("5") I believe. No problem. Wink
Insectoid




PostPosted: 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).
[Gandalf]




PostPosted: 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. Smile
Insectoid




PostPosted: Wed Sep 17, 2008 7:43 pm   Post subject: RE:Converting types

D'oh! I always forget about google...
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: