title: How to split "-2-2" to -2,2 ? (I want to split this string only by middle '-' in Java)
body: <p>How should I write in spilit method ?</p>
  
  <pre><code>     String str = "-2-8";
       String[] array =   str.split("?");
  </code></pre>