Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strings and Trailing Spaces

Status
Not open for further replies.

dnguyen

Programmer
Apr 16, 2001
11
AU
Hi All,

Is there any method to drop any trailing spaces before or after a STRING.

That is, of course, the .equals() attribute for strings already does this?.

Cheers.
 
trim() method in the String class does exactly this. No, equals() does not do this. Wushutwist
 
Thanks Wushutwist, that did the trick.

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top