Re: Trim strings?
Michael wrote:
I just had a question. How do you trim strings?
Of what?
..OR rather how do you insert
the command into java to trim strings?
String.trim()
..Since I have a program here that uses
many strings for entering data(numbers). But I get and exception numerica
runtime error.
You are talking gibberrish (also known as nonsense, rubbish, or crap)
As far as I understand, the number formatting methods are tolerant
of leading and trailing space.
Please copy/paste the exact errors or exceptions you are getting.
So that brings us to the questions,
a) What exactly are you doing? <http://www.physci.org/codes/sscce.jsp>
b) What data are you providing to the code?
c) What (exactly) happens when you run it?
<http://www.physci.org/codes/javafaq.jsp#exact>
.