dvas0004 / NerdNotes

A collection of notes: things I'd like to remember while reading technical articles, technical questions I couldn't answer, and so on.
12 stars 0 forks source link

equals() #3

Open dvas0004 opened 5 years ago

dvas0004 commented 5 years ago

The "equals()" method can be used on different types of variables, even on "null". What you are comparing to doesn't need to be of the same type as the variable you're comparing