[Solved] COMPARABLE – How to see if elements from objects are equals?
If you want to know just if an object is equal to another you have to implemet the equals method (which doesn’t requiere you to declare any interface, every class can do it) @Override public boolean equals(Object o) { CompararListas other = (CompararListas) o; return … } with this method you can return what makes … Read more