60

After heck a lot of hours of debugging my Java code which looked all right, found out my mistake was just using == instead of equals()

Comments
  • 1
    This. I only just started properly overriding ".Equals()" and "==()" a couple weeks ago. Still easier than not using OOP.
  • 3
    And that's exactly why you either use a proper IDE or at least a linter.

    https://img.devrant.com/devrant/...
  • 1
    The number of times this has caught me in C# as well.

    I’m much happier rolling around in F# at the moment. <3
  • 3
    Kotlin is our savior kotlin is life!

    (it allows == with strings)
  • 1
    @loebkes True that! Kotlin is an absolute pleasure to work with!!
Add Comment