Forums Register Login

java trim function is not working when reading excel data

+Pie Number of slices to send: Send
From java,I am trying to read the values from excel,excel values have white-spaces in it. I was not able to trim it. java trim function is not working in it. Please help me.
+Pie Number of slices to send: Send
Can you please provide exact code that you are using. There might me some misunderstanding...
+Pie Number of slices to send: Send
String.trim() only removes white-space at the begin and end. Not in the middle and remember that it returns a new String object. The value of the original String is not altered.
+Pie Number of slices to send: Send
I got it ... using StringUtils.trim(str) works fine
Friends help you move. Good friends help you move bodies. This tiny ad will help:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 4536 times.
Similar Threads
ArrayIndexOutOfBounds
Extracting data from Excel sheet through servlets in linux
Javascript Excel Sheet API
insert CSV values from file to MySQL
unable to remove spaces in xml
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:40:01.