how to diferenciate an object that as the same attributes java code example Example: how to compare objects in java this.equals(other)