how to acces variables when using "split"

Post your questions and help other users.

Moderator: Martin

Post Reply
jmosr
Posts: 7
Joined: 07 Apr 2013 04:03

how to acces variables when using "split"

Post by jmosr » 07 Apr 2013 14:51

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 ?


Post Reply