in my android app, i would like to split an array value into another array.
i have an Array with the name ArrayA. log of ArrayA[0]:
Peter|Mustermann
now i would like to split Peter and Mustermann, i try this:
String [] ArrayB = ArrayA[0].split("|");
But the Log of ArrayB[0] and ArrayB[1] will not be:
Peter
And
Mustermann
it will be:
P
And
nothing
Any ideas ? :(