File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

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

 
mvPrasad Regula
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
For the following code Equal is printed



For the following code not equal is printed

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Having ignored multiple warnings regarding your display name, your account has been closed.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic