title: splitting char[] into separate char[] using delimiter in java
body: <p>I have a situation in Java where I want to split the char[] into separate char[] which is having <code>|</code> as delimiter. 
  Example : </p>
  
  <pre><code>char[] input = { 'a', 'r', '|','t', 'i', '|','s', 't' };
  </code></pre>
  
  <p>given <strong>input</strong> character array should be split in to 3 different character arrays like :-</p>
  
  <pre><code>result1 = {'a','r'}
  result2 = {'t','i'}
  result3 = {'s','t'}
  </code></pre>
  
  <blockquote>
    <p>Note: The delimiter occurrence is fixed and for security reasons I am not allowed to use strings here. </p>
  </blockquote>
  
  <p>How can I do this in java?</p>