Page 1 of 1

how to acces variables when using "split"

Posted: 07 Apr 2013 14:51
by jmosr
how can acces these 3 variables ?

s = "variable1/variable2/variable3"
my_var = split(s, "/")

i have been looking in Java String Split Examples
i can see that my_var[0], my_var[1] and my_var[2] should represent my 3 variables
but it is not working, What is wrong ?

Re: how to acces variables when using "split"

Posted: 07 Apr 2013 18:03
by bobchernow