title: can split string method of java return the array with the delimiters as well
body: <p>When we use <code>String.Split()</code> method on a string to split in java, it works as following:</p>
  
  <pre><code>String s = "hello my dear";
  String[] ss = s.split("[ ]");
  </code></pre>
  
  <p>The array <code>ss</code> contains <code>[Hello, my, dear]</code> but the spaces (which are the delimiters) in this case are not the part of array.</p>
  
  <p>is there some way that the delimiters may be the part of the array generated using the split method of string class in Java.</p>