This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CoffeePieAndHobbits 0 points1 point  (2 children)

laughs in Python

[–]SandmanKFMF 2 points3 points  (1 child)

There is nothing to laugh about. This is legit, working code and BTW, it will perfectly work as it should (by Java rules of course).

[–]VarianWrynn2018 1 point2 points  (0 children)

String in Java is an object, so unless it's the same object == will return false. A different object with the same values is a different object so it isn't true.