Java method to get back parameters from string
<p>I have a string like following</p>

<pre><code>   Integer-Integer_Integre_Integer.....
</code></pre>

<p>For eg.</p>

<pre><code>   3-1_0_2_4
</code></pre>

<p>I want to extract everything on the left side of - into one variable and everything on the right side of - into another variable</p>

<pre><code>String s1 = 3;
String s2 = 1_0_2_4....
</code></pre>
