I have to convert the string of 1324312321 to an array of integers in Java
that's fine. I can use the integer parcel and string substring method
But how do I change -12312312 for the integer of my original array ..
The fact is that - a four / string And to convert it
It should be an array of integers and how should I convert negative numbers and still be cp. I will change the value of the array of integers (even if I convert - Whole To change, this will change the remaining 12312312)
Either way, I am reminding of two complementary moves, but I feel that I do not need to go to the binary level in my program.
Any other move to do this?
Thank you!
Why not only first element -1
instead of 1
?
Comments
Post a Comment