Skip to content

Instantly share code, notes, and snippets.

@gluntn
Created January 17, 2019 11:18
Show Gist options
  • Select an option

  • Save gluntn/38b8c8958fea912356840d3e318eb375 to your computer and use it in GitHub Desktop.

Select an option

Save gluntn/38b8c8958fea912356840d3e318eb375 to your computer and use it in GitHub Desktop.
fd
public boolean equals(Object o) {
if(!(o instanceof Triangle) || o == null) return false;
Triangle that = (Triangle)o;
return this.side1 == that.side1 && this.side2 == that.side2 && this.side3 == that.side3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment