This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Why is Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic
Author

Why is "String".trim() not equal to " String ".trim()

mvPrasad Regula
Ranch Hand

Joined: Sep 14, 2009
Posts: 42
For the following code Equal is printed



For the following code not equal is printed


Prasad Regula
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Having ignored multiple warnings regarding your display name, your account has been closed.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why is "String".trim() not equal to " String ".trim()
 
Similar Threads
Doubts in Strings
Trim()
q from abhilash mock exam on strings.
string operation
String Confusion