We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello All,
I know in python its as simple as the syntax String[1:] etc.
But I can not seem to find as simple as a way in java. I am wanting to loop through a series of dollar values and just get rid the the dollar sign to start using the values as ints to manipulate.
Thanks, Sam
Answers
java substring.
http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#substring(int)
Beautiful- exactly what I was after. That would be a similar idea for getting rid of any instances of a comma for example between numbers?
Sam
@samuelnsweeney -- There are many ways to filter specific characters from a string, but if you are only going to remove a single character and of the strings are reasonably small then you could just split() and join() using the Processing built-ins:
Concisely:
That sounds like a good way, thankyou Jeremy. The string document above shows what look like more complex ways like replace. etc
Sam