I\'m a Java-beginner, so please bear with this one.
I have a class:
class Point { public int x; public int y; public Point (int x, int y) {
You'll want to override the hashCode() and equals() method. If you're using Eclipse, you can have Eclipse do this for you by going to Source -> Generate hashCode() and equals()... After you override these methods, you can call:
hashCode()
equals()
Source -> Generate hashCode() and equals()..
if(a.equals(b)) { ... }