I am having problems with the java string.split method.
I have a string word like so, which equals- freshness|originality. I then split this string like so:
   String words[] = word.split("|");
If I then output words[1], like so:
    t1.setText(words[1]); 
It gives me the value f. I have worked out that this is the f in the word freshness.
How can I split the string properly so that words[1] is actually originality? Thanks for the help! 
 
     
     
     
     
     
    