A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Programmer Certification (SCJP/OCPJP)
trim( ) method
Joined: Oct 11, 2004
Jan 21, 2005 10:32:00
why the output of this statement is :
please help ...
Joined: Jan 17, 2005
Jan 21, 2005 10:34:00
trim() method removes only leading or trailing blank spaces. Not the spaces in between.
Joined: Jan 20, 2005
Jan 21, 2005 10:37:00
String.trim() just removes leading and trailing spaces (i.e. spaces at the start and end of the
). "aa aa" doesn't have any leading or trailing spaces, so gets returned as it is.
There will be glitches in my transition from being a saloon bar sage to a world statesman.
- Tony Banks
Joined: Aug 31, 2004
Jan 21, 2005 12:26:00
rathi, you can find the answers to many of your questions in the API Specs.
[ January 21, 2005: Message edited by: marc weber ]
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award."
I agree. Here's the link:
subject: trim( ) method
howto set DIV and make display
server side validation
How many strings are created?
string how it works
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014