I am having problems with java string.split method.
I have a string word that is - freshness|originality. Then I split this line as follows:
String words[] = word.split("|");
If I then deduce the words [1], like this:
t1.setText(words[1]);
This gives me a f value. I found out that this is the word f in the word freshness.
How can I split the string correctly so that the words [1] are actually originality? Thanks for the help!
James source
share