Re: Trim strings?



On Thu, 29 Sep 2005 01:38:20 GMT, "Michael" <mbialowas@xxxxxxx> wrote
or quoted :

>I just had a question. How do you trim strings? OR rather how do you insert
>the command into java to trim strings? Since I have a program here that uses
>many strings for entering data(numbers). But I get and exception numerica
>runtime error.Thanks in advance.

s = s.trim();

To then convert to numbers. see
http://mindprod.com/applets/converter.html

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.



Relevant Pages