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