Archived

This topic is now archived and is closed to further replies.

[java] Simple Question (Need answer fast!!!)

This topic is 6365 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I try really hard to find how to do this... I need to transfer the conten of a String (who only contain number) to a long variable. My long variable is call: Number1 My String is call: N1 I know the keyword parse as something to to with this... Please post code! Thanks!

Share this post


Link to post
Share on other sites
Here you go: (java source code)

        
long Number1 = Long.parseLong(N1);


Hope this helped.

=============================
silly programmer vb is for kids.

Edited by - loserkid on July 13, 2000 11:23:57 PM

Share this post


Link to post
Share on other sites