how to represent negative number to array of integers?
<p>I must convert string of 1324312321 to array of integers in java</p>

<p>this is fine. I could use integer parseint and string substring method </p>

<p>but how do I repesent -12312312 to my original array of integer.. </p>

<p>the fact that - is a char / string and convert to array of integer would alter the value ( even though I convert - to integer-equivalent , it would change the rest of 12312312)</p>

<p>it must be an array of integers and how should I convert negative numbers and still keeep the same value</p>

<p>somehow reminding me of two complements trick but i dont think i need to go down to binary level in my program.. </p>

<p>any other trick for doing this?</p>

<p>thanks!</p>
