i have a string BusAndNo = "8|1;800|2;900|1;";
Can anyone help how do i split this string into two separate string variables and call it..
1) String Bus
2) String Number.
I am able split the semicolon
Here are codes: Currently stuck and unsure how to continue from here..
string BusAndNo = "8|1;800|2;900|1;";
String svcDirArray[] = BusAndNo.split(";");
String Bus;
String Number;
for (int i=0; i < svcDirArray.length;i++)
{
for (int j = 0; j < svcDirArray[i].length(); j++)
{
svcDirArray[i].split("|");
}
}