Minusing 3 characters from the end of a string in Java : <p>I have a string oCustomerOrderNumber which I am passing a value into iCustomerOrderNumber. I would like to remove the last 3 characters from this iCustomerOrderNumber but unable to get this to work. Error I get is that it does not like the -.</p>

<p>Code:</p>

<pre><code> oCustomerOrderNumber = iCustomerOrderNumber.trim() -  
 (iCustomerOrderNumber.length() -3);
</code></pre>

<p>Example. ICustomerOrderNumber is 1234567 I want oCustomerOrderNumber to be 1234.</p>
