We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
STN (Read 536 times)
STN
Jul 19th, 2009, 2:05am
 
Hello every.I don't know how to convert a string formed number to its original integer form in java,can you help me?For example,let "2" be 2?Thank you.
Re: STN
Reply #1 - Jul 19th, 2009, 2:15am
 
In Processing, it is as simple as:
Code:
String ns = "156";
int ni = int(ns);
println(ni + 1);
Re: STN
Reply #2 - Jul 19th, 2009, 2:53am
 
What a timely reply!
You taught me this tec I've never known!
Thank you very much!
Page Index Toggle Pages: 1