posted 17 years ago
Hi,
I have two ArrayList containing objects(POJO) of same type.I need to compare these tow ArrayLists on the basis of one attribute of the object.
Currently I am interating both lists and comparing a specific attribute.
I read about comparable interface and it did not seem to make much sense to me as there also I will have to iterate both lists and then call compareTo method.
Pls advice .
Thanks