title: How to split this string in java?
body: <p>I have this code</p>
  
  <pre><code>lStock.setText(" Put " + getLoc(i));
  </code></pre>
  
  <p>At the moment it prints out like this on the GUI:</p>
  
  <pre><code>3I031C
  </code></pre>
  
  <p>what I want to show now on the screen GUI is:</p>
  
  <pre><code>3I03-1C
  </code></pre>
  
  <p>I tried testing the <code>split()</code> but I'm confused.</p>