Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    I suspect you mean string1 == string2 and string1.equals(string2)—both the examples in your answer will return false. Commented May 5, 2010 at 11:49
  • sorry for sure i mean "string" == "string" and "string".equals("string") Commented May 5, 2010 at 11:51
  • 6
    "string" == "string" will actually evaluate to true. Commented May 5, 2010 at 11:56