title: how to find before and after sub-string in a string
body: <p>I have a string say <code>123dance456</code> which I need to split into two strings containing the first sub-string before the sub-string <code>dance</code> (i.e. <code>123</code>) and after the sub-string <code>dance</code> (i.e. <code>456</code>). I need to find them and hold them in separate string variables, say <code>String firstSubString = 123;</code> and String <code>secondSubString = 456;</code>.</p>
  
  <p>Is there any given String method that does just that?</p>