Quote:
Originally Posted by OpenLoop
StringTokenizer t = new StringTokenizer(inp, "+- //t/n/ri");
I think this is your problem. If I understand it correctly, this will return the numbers delimited by + or - or tab... So it will ignore the delimiter, and return the values between them causing you to lose the negative sign.
|
Yes that fixed my problem thank you very much.