Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

String.trim() method

807569Jul 6 2006 — edited Jul 6 2006
I have a question about String.trim().

I have a string like this:
\u00a0
\u000a
\u0020
\u0020
\u0020
\u0020

But after I call String.trim(),
The string becomes like this:
\u00a0
\u000a

My question is how come trim() does not remove \u000a and \u000a0?

Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 3 2006
Added on Jul 6 2006
2 comments
377 views