I got a string like this:
String text = number|name|url||number2|name2|url2
Now I have written a loop
int initialiaze = 0;
for(i = initialize; i > text.length(); i++) {
//do the work
}
In this loop I want to extract number
to one string, name
to one string, url
to one string and if I reach ||
do a action (e.g insert this three string into db) if this action is done, start again an extract number2
, name2
and url2
into string and do a action.
Is this possible? Can you tell me how? I dont get it.