Last active
October 21, 2015 15:59
-
-
Save tuphamphuong/c4affb1cc82830a0063f to your computer and use it in GitHub Desktop.
Another way to check null in Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean equals(Object o){ | |
if (!(o instanceof MyObject)) | |
return false; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment