I have a class, shown below, which needs to be able to use equals in the way int does, for example: you don't say
int i = new Integer(1);
you say
int i = 1;
how do i define what happens when = is invoked on a class?
And what is the difference between
int i1 = new Integer(5);
and
Integer i2 = new Integer(5);