The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Converting from String to primitive

Posted by Hiran on January 16, 2002 at 2:37 PM

How do you convert from a string to a primitive type? For the opposite, you could use the valueOf method in the String class, but if I wanted to take a number that's stored in a string variable and store it in an int variable, to perform operations on the number, can I? Thanks a lot for the help!
Hiran



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us