Re: Trim strings?



hello,
when i type this in i get this
Please enter 6 integers followed by a space.
1 5 79 86 4 5
Exception in thread "main" java.lang.NumberFormatException: 5 79 86 4 5
at java.lang.Integer.parseInt(Integer.java:423)
at java.lang.Integer.parseInt(Integer.java:463)
at change.main(change.java:61)
Press any key to continue . . .
"Michael" <mbialowas@xxxxxxx> wrote in message
news:gAH_e.8374$tl2.8340@xxxxxxxxxxx
> Hello everyone,
>
> 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.
>


.